Part Number Hot Search : 
HI3276 W4093BN 1205E 001456 S15WB60 DB157 SLD10UAY XXXBC
Product Description
Full Text Search
 

To Download RFM93W-868S2 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  rfm92w / 93w v 3.0 wireless & sensing page 1 ? t el: +86-755-82973805 fax: +86-755-82973550 e-mail: sales@hoper f .com http://ww w .hoper f .com rfm92w/93w - low power long range tr ansceiver module datasheet v3.0 general description the rfm92w/93w transceivers feature the lora tm ? long range modem that provides ultra-long range spread spectrum communication and high interference immunity whilst minimising current consumption. using semtech?s patented lora tm ? modulation technique rfm92w/93w can achieve a sensitivity of over -137 dbm using a low cost crystal and bill of materials. the high sensitivity combined with the integrated +20 dbm power amplifier yields industry leading link budget making it optimal for any application requiring range or robustness. lora tm ? also provides significant advantages in both blocking and selectivity over conventional modulation techniques, solving the traditional design compromise between range, interference immunity and energy consumption. these devices also support high performance (g)fsk modes for systems including wmbus, ieee802.15.4g. the rfm92w/93w deliver exceptional phase noise, selectivity, receiver linearity and iip3 for significantly lower current consumption than competing devices. applications ? automated meter reading ? home and building automation ? wireless alarm and security systems ? industrial monitoring and control ? long range irrigation systems key product features ? lora tm ? modem ? 157 db maximum link budget ? +20 dbm at 100 mw constant rf output vs. v supply ? +14 dbm high efficiency pa ? programmable bit rate up to 300 kbps ? high sensitivity: down to -137 dbm ? bullet-proof front end: iip3 = -12.5 dbm ? 89 db blocking immunity ? low rx current of 10 ma, 100 na register retention ? fully integrated synthesizer with a resolution of 61 hz ? fsk, gfsk, msk, gmsk, lora tm ? and ook modulation ? built-in bit synchronizer for clock recovery ? preamble detection ? 127 db dynamic range rssi ? automatic rf sense and cad with ultra-fast afc ? packet engine up to 256 bytes with crc ? built-in temperature sensor and low battery indicator rfm92w/93w
page 2 rfm92w / 93w v 3.0 ? t el: +86-755-82973805 fax: +86-755-82973550 e-mail: sales@hoper f .com http://ww w .hoper f .com wireless & sensing datasheet table of contents section page 1. general description .......................... .................. .............................. ............................ ......................... ................ 10 1.1. simplified block diagram ............................................................................................................................... 10 1.2. product versions ......................................................................................................... ................................11 1.3. pin diagram ....................................................................................................................... ............................ 11 1.4. pin description .......................................................................................................... ..................................12 1.5. package marking .......................................................................................................... ..............................13 2. electrical characteristics ............................................................................................................................... ........ 14 2.1. esd notice ............................................................................................................................... ..................... 14 2.2. absolute maximum ratings ............................ .................................. ................. ........................ .................... 14 2.3. operating range.......................................................................................................................... .................. 14 2.4. thermal properties ............................................................................................................................... ......... 14 2.5. chip specification ....................................................................................................... ................................15 2.5.1. power consumption .......................................... ........................................... .......................................... ... 15 2.5.2. frequency synthesis ..................... ............... .............................. ..................... ....................... ................. .. 15 2.5.3. fsk/ook mode receiver ..................... ........................ ...................................... ................................... ... 16 2.5.4. fsk/ook mode transmitter ................................................................................................................... .. 17 2.5.5. electrical specification for lora tm modulation ................................................ ....................... .................. 18 2.5.6. digital specification .......................................... ............................ ............................ ............................. .... 20 3. rfm92w/93w features ........................ .............................. ...................... ............................ ....................... .......... 21 3.1. lora tm modem ............................................................................................................................... .............. 22 3.2. fsk/ook modem ............................................................................................................................... ........... 22 4. rfm92w/93w digital electronics ......................................................................................................................... 23 4.1. the lora tm modem ............................................................................................................................... ....... 23 4.1.1. link design using the lora tm modem ..................................................................................................24 4.1.1.1. overview ............................................................................................................................... ............ 24 4.1.1.2. spreading factor......................................................................................................................... ...... 25 4.1.1.3. coding rate ............................................................................................................................... ....... 25 4.1.1.4. signal bandwidth ...................... ...................... ............................................ ...................................... 26 4.1.1.5. lora tm transmission parameter relationship................................................................................. 26 4.1.1.6. lora tm packet structure .............................................................................................................. .27 4.1.1.7. time on air ............................................................................................................................... ......... 28 4.1.1.8. frequency hopping with lora tm ...................................................................................................... 29 4.1.2. lora tm digital interface ............................................................................................................. ............31 4.1.2.1. lora tm configuration registers ....................................................................................................... 31 4.1.2.2. status registers ........................... ...................... ......................................... ..................................... . 31 4.1.2.3. lora tm mode fifo data buffer ....................................................................................................... 31 4.1.3. operation of the lora tm modem .............. ................................. ..................... .................... ...................... 33 4.1.3.1. operating mode control ........................... ............................................... .......................................... 33 4.1.4. frequency settings ..................................................................................................... ...........................34 4.1.5. lora tm modem state machine sequences ...........................................................................................35 4.1.5.1. digital io pin mapping ............................. ............................... ............................. ............................. 42 4.2. fsk/ook modem ........................ ....................... ......................... ................ ............. .......................... ........... 43
page 3 rfm92w / 93w v 3.0 ? t el: +86-755-82973805 fax: +86-755-82973550 e-mail: sales@hoper f .com http://ww w .hoper f .com g datasheet table of contents section page 4.2.1. bit rate setting .......................................... .......................................... ....................... .................... .......... 43 4.2.2. fsk/ook transmission ............................... ....................... ................... ......................... .......................... 44 4.2.2.1. fsk modulation................................ ................... ...................... ...................... .......... ............ ............ 44 4.2.2.2. ook modulation....................... ...................... ..................... ................... ............... ................. ........... 44 4.2.2.3. modulation shaping .......................................................................................................................... 44 4.2.3. fsk/ook reception ..................... ........................ ................... ............................. ........................ ............ 45 4.2.3.1. fsk demodulator.................................................................................................................... .......... 45 4.2.3.2. ook demodulator...................... ...................... ............... ............................. ............... ............. ......... 45 4.2.3.3. bit synchronizer ............................................................................................................................... . 47 4.2.3.4. frequency error indicator ............................................................................................ ..................48 4.2.3.5. afc ............................................................................................................................... .................... 48 4.2.3.6. preamble detector .................................................................................................... .....................49 4.2.3.7. image rejection mixer ...................................................................................................................... 49 4.2.3.8. image and rssi calibration.............................................................................................................. 49 4.2.3.9. timeout function .............................................................................................................................. 50 4.2.4. operating modes in fsk/ook mode ........................................................................................................ 50 4.2.5. general overview....................................................................................................................... ............... 50 4.2.6. startup times .......................................................................................................... ...............................51 4.2.6.1. transmitter startup time .............................. ........................... ...................... ................... ................ 51 4.2.6.2. receiver startup time ...................................................................................................................... 51 4.2.6.3. time to rssi evaluation .......................... .................................................. ....................................... 52 4.2.6.4. tx to rx turnaround time ................................ .......................... ................... ................... ................ 53 4.2.6.5. rx to tx ............................................................................................................................... .............. 53 4.2.6.6. receiver hopping, rx to rx ........................................................................................... .................54 4.2.6.7. tx to tx ............................................................................................................................... .............. 54 4.2.7. receiver startup options ............................... ....................... ........................ ..................... .................... ... 54 4.2.8. receiver restart methods ......................................... ..................... ............................... .............. .............. 55 4.2.8.1. restart upon user request .............................................................................................................. 55 4.2.8.2. automatic restart after valid packet reception ................................................................................ 55 4.2.8.3. automatic restart when packet collision is detected .................................................................. ..56 4.2.9. top level sequencer ....................... ...................... ................... ............................ ......................... ........... 56 4.2.9.1. sequencer states.................... ....................... .......................... ............................ ........................ ..... 56 4.2.9.2. sequencer transitions ................................................................................................................... ... 57 4.2.9.3. timers .......................................... ....................... ...................... ................... ..................... ................ 58 4.2.9.4. sequencer state machine .............................................................................................. .................60 4.2.10. data processing in fsk/ook mode ....................................................................................................... 61 4.2.10.1. block diagram ..................... ........................... .......................................... .................. ................... .. 61 4.2.10.2. data operation modes .................................................................................................................... 61 4.2.11. fifo .................................................................................................................. ...................................62 4.2.11.1. sync word recognition................................................................................................................... 63 4.2.12. digital io pins mapping ............................................................................................... .........................65 4.2.13. continuous mode ....................................................................................................... ..........................66 4.2.13.1. general description ........................................................................................................................ 66 4.2.13.2. tx processing .............................. .................................... ................................ ............................. .. 66 4.2.13.3. rx processing ....................... ........................... ......................................... ................. ................... .. 67 4.2.14. packet mode ............................................................................................................................... ............ 67
page 4 rfm92w / 93w v 3.0 ? t el: +86-755-82973805 fax: +86-755-82973550 e-mail: sales@hoper f .com http://ww w .hoper f .com table of contents section page 4.2.14.1. general description ........................................................................................................................ 67 4.2.14.2. packet format ............................................................................................................................... .. 68 4.2.14.3. tx processing ....................... ........................... ......................................... .................................... .. 71 4.2.14.4. rx processing ....................... ....................... ............................................ .................. ................... .. 71 4.2.14.5. handling large packets ............................. .......................... ........................... ................................ 72 4.2.14.6. packet filtering ............................................................................................................................... 72 4.2.14.7. dc-free data mechanisms.................... ............................. ................. ................... ........................ 74 4.2.14.8. beacon tx mode ............................................................................................................................. 75 4.2.15. io-homecontrol? compatibility mode ...................................................................................................... 75 4.3. spi interface ............................................................................................................ ....................................76 5. rfm92w/93w analog & rf frontend electronics........................ ........................ ...................... ........................... 78 5.1. power supply strategy ............................................................................................................................... ... 78 5.2. low battery detector ............................................................................................................................... ...... 78 5.3. frequency synthesis ............................................................................................................................... ...... 78 5.3.1. crystal oscillator .................................................................................................................... ................... 78 5.3.2. clkout output ............................................................................................................................... ......... 79 5.3.3. pll ............... .................................... ............................ ................ ................................ ............................. 79 5.3.4. rc oscillator ............................... ........................... ................... ....................................... ......................... 81 5.4. transmitter description .................................................................................................. ..............................82 5.4.1. architecture description ................................................................................................................... ......... 82 5.4.2. rf power amplifiers......................... .......................... ................................ .................. ................ ............. 82 5.4.3. high power +20 dbm operation ........................... ........................................ ................... ......................... 83 5.4.4. over current protection ................................................................................................ .........................84 5.5. receiver description ............................................................................................................................... ....... 84 5.5.1. overview ............................................ .................. ............... .................. ................................ .................... 84 5.5.2. receiver enabled and receiver active states .......................................................................................... 84 5.5.3. automatic gain control in fsk/ook mode .............................................................................................. 85 5.5.4. rssi in fsk/ook mode .......................................................................................................................... . 86 5.5.5. rssi in lora tm mode .............................................................................................................................. 87 5.5.6. channel filter ............................................................ ................ ......................... .......................... ............. 87 5.5.7. temperature measurement ....................................................................................................................... 88 6. description of the registers...................................................................................................................... ............. 89 6.1. register table summary ....................................................................................................................... ........ 89 6.2. fsk/ook mode register map ................................................................................................ ....................92 6.3. lora tm mode register map ........................................................................................................................ 106 7. application information ............................... ................. ........................ ...................... ..................... ..................... 112 7.1. crystal resonator specification ................................................................................................................... 112 7.2. reset of the chip ............................................................................................................................... .......... 112 7.2.1. por................. .............................. ......................... ................... ................................. ............................. 112 7.2.2. manual reset ........................................................................................................... ............................113 7.3. top sequencer: listen mode examples ...................................................................................................... 113
page 5 rfm92w / 93w v 3.0 ? t el: +86-755-82973805 fax: +86-755-82973550 e-mail: sales@hoper f .com http://ww w .hoper f .com table of contents section page 7.3.1. wake on preamble interrupt ................................................................................................................... 113 7.3.1.1. timing diagram ....................... ....................... ............................................ .................. ................... 114 7.3.1.2. sequencer configuration .............................................................................................. ................115 7.3.2. wake on syncaddress interrupt .......................................................................................... ..................116 7.3.2.1. timing diagram ....................... ....................... ............................................ .................. ................... 116 7.3.2.2. sequencer configuration ................................................................................................................ 117 7.4. top sequencer: beacon mode ............................................................................................... ...................119 7.4.1. timing diagram....................................................... .................. ...................... ......................... ................ 119 7.4.2. sequencer configuration.................................................................................................................. ....... 119 7.5. example crc calculation ......... ............................................ ....................... ...................... .......................121 7.6. example temperature reading .............................................................................................. ...................122 7.7 reference design ?????????????????????????????????????...123 8. packaging information ................................ ...................... ................................... ...................................... .......... 124 8.1. package outline drawing ........................... .................................... ................ ................... .......................... 124 9. ordering information ................................ .......................... ........................ ....................... ........... ........... ............. 125
page 6 rfm92w / 93w v 3.0 ? t el: +86-755-82973805 fax: +86-755-82973550 e-mail: sales@hoper f .com http://ww w .hoper f .com table of contents section page table 1. rfm92w/93w device variants and key parameters ...... .................................................................. ..............11 table 2. pin description ...................................................................................................... ..........................................12 table 3. absolute maximum ratings ............................................................................................. ................................14 table 4. operating range ...................................................................................................... .......................................14 table 5. operating range ...................................................................................................... .......................................14 table 6. power consumption specification ...................................................................................... .............................15 table 7. frequency synthesizer specification .................................................................................. ............................15 table 8. receiver specification ............................................................................................... ......................................16 table 9. transmitter specification ............................................................................................ .....................................17 table 10. digital specification ............................................................................................... ........................................20 table 11. example lora tm modem performances ......................................................................................................23 table 12. range of spread ing factors .......................................................................................... ................................25 table 13. cyclic coding over head ............................... .................. ...................... ............ ........... ..................................25 table 14. lora tm operating mode functionality .................................................................................................. ........33 table 15. lora cad consumption figures ........................................................................................ ..........................42 table 16. dio mapping lora tm mode .......................................................................................................................... 42 table 17. bit rate examples ................................................................................................... ......................................43 table 18. preamble detector settings .......................................................................................... .................................49 table 19. rxtrigger settings to enable timeout interrupts ..................................................................... .....................50 table 20. basic transceiver modes ............................................................................................. .................................50 table 21. receiver startup time summary ....................................................................................... ...........................52 table 22. receiver startup options ............................................................................................ ..................................55 table 23. sequencer states .................................................................................................... ......................................56 table 24. sequencer transition options ........................................................................................ ...............................57 table 25. sequencer timer settings ............................................................................................ .................................59 table 26. status of fifo when switching between different mo des of the chip ................................................... ......63 table 27. dio mapping, continuous mode ........................................................................................ ...........................65 table 28. dio mapping, packet mode ............................................................................................ ..............................65 table 29. crc description .................................................................................................... .......................................73 table 30. power amplifier mode selection truth table .......................................................................... ......................82 table 31. high power settings ................................................................................................. .....................................83 table 32. operating range, +20 dbm operation .................................................................................. ........................83 table 33. operating range, +20 dbm operation .................................................................................. ........................83 table 34. trimming of the ocp current ......................................................................................... ...............................84 table 35. lna gain control and performances ................................................................................... .........................85 table 36. rssismoothing options ............................................................................................... ..................................87 table 37. available rxbw settings ............................................................................................. ...................................87 table 38. registers summary ................................................................................................... ....................................89 table 39. register map ........................................................................................................ .........................................92
page 7 rfm92w / 93w v 3.0 ? t el: +86-755-82973805 fax: +86-755-82973550 e-mail: sales@hoper f .com http://ww w .hoper f .com table of contents section page table 40. register map, lora mode ............................................................................................. ..............................106 table 41. crystal specification ............................................................................................... .....................................112 table 42. listen mode with preambledetect condition settings .................................................................. ...............115 table 43. listen mode with preambledetect condition recommended dio mapping ...............................................115 table 44. listen mode with syncaddress condition settings ..................................................................... ................117 table 45. listen mode with preambledetect condition recommended dio mapping ...............................................118 table 46. beacon mode settings ................................................................................................ ................................120 table 47. revision history .................................................................................................... .......................................126
page 8 rfm92w / 93w v 3.0 ? t el: +86-755-82973805 fax: +86-755-82973550 e-mail: sales@hoper f .com http://ww w .hoper f .com table of contents section page figure 1. rfm92w/93w block diagram ................................. .......................................................... ............................10 figure 2. pin diagram ........................................................................................................ ...........................................11 figure 3. package marking .................................................................................................... .......................................13 figure 4. simplified rfm92w block schematic diagram .......................................................................... ...................21 figure 5. lora tm modem connectivity ............................................................................................................ ............24 figure 6. interrupts generated in the case of successful frequency hopping comm unication. .................................... .30 figure 7. channel activity detection (cad) time as a functi on of spreading factor. ........................................... ..........41 figure 8. consumption profile of the lora cad process ........................................................................ ....................42 figure 9. ook peak demodulator description ................................................................................... ..........................45 figure 10. floor threshold optimization ...................................................................................... ................... .............46 figure 11. bit synchronizer description ...................................................................................... .................................47 figure 12. startup process ................................................................................................... ........................................51 figure 13. time to rssi sample ............................................................................................... ....................................52 figure 14. tx to rx turnaround ............................................................................................... ....................................53 figure 15. rx to tx turnaround ............................................................................................... ....................................53 figure 16. receiver hopping .................................................................................................. ......................................54 figure 17. transmitter hopping ............................................................................................... .....................................54 figure 18. timer1 and timer2 mechanism ....................................................................................... ............................58 figure 19. sequencer state machine ........................................................................................... ................................60 figure 20. rfm92w/93w data processing conceptual view ........................................................................ ..............61 figure 21. fifo and shift register (sr) ...................................................................................... ................................62 figure 22. fifolevel irq source behavior ..................................................................................... ................. .............63 figure 23. sync word recognition ............................................................................................. ..................................64 figure 24. continuous mode conceptual view ................................................................................... .........................66 figure 25. tx processing in continuous mode .................................................................................. ...........................66 figure 26. rx processing in continuous mode .................................................................................. ..........................67 figure 27. packet mode conceptual view ....................................................................................... ............................68 figure 28. fixed length packet format ........................................................................................ ...............................69 figure 29. variable length packet format ..................................................................................... ..............................70 figure 30. unlimited length packet format .................................................................................... .............................70 figure 31. manchester encoding/decoding ...................................................................................... ...........................74 figure 32. data whitening polynomial ......................................................................................... ................................75 figure 33. spi timing diagram (single access) ................................................................................ ...........................76 figure 34. tcxo connection ................................................................................................... ....................................78 figure 35. typical phase noise performances of the low consumption and low phase noise plls. .......................80 figure 36. rf front-end architecture shows the internal pa configuration. .................................................... ...........82 figure 37. receiver block diagram ............................................................................................ ..................................85 figure 38. agc steps definition .............................................................................................. ....................................86 figure 39. temperature sensor response ....................................................................................... ................ ...........88
page 9 rfm92w / 93w v 3.0 ? t el: +86-755-82973805 fax: +86-755-82973550 e-mail: sales@hoper f .com http://ww w .hoper f .com table of contents section page figure 40. por timing diagram ................................................................................................ ................................112 figure 41. manual reset timing diagram ....................................................................................... ...........................113 figure 42. listen mode: principle ............................................................................................ ...................................113 figure 43. listen mode with no preamble received ............................................................................. ....................114 figure 44. listen mode with preamble received ................................................................................ .......................114 figure 45. wake on preambledetect state machine .............................................................................. ...................115 figure 46. listen mode with no syncaddress detected .......................................................................... ...................116 figure 47. listen mode with preamble received and no syncaddress ............................................................. ........116 figure 48. listen mode with preamble received & valid syncaddress ............................................................ ........117 figure 49. wake on syncaddress state machine ................................................................................. ....................117 figure 50. beacon mode timing diagram ........................................................................................ ..........................119 figure 51. beacon mode state machine ......................................................................................... ...........................119 figure 52. example crc code .................................................................................................. ................................121 figure 53. example temperature reading ....................................................................................... .........................122 figure 59 +20dbm schematic................................................................................................... ..................................123 figure 60 package outline drawing ........................................................................................... ................................124
rfm92w / 93w v 3.0 page 10 ? t el: +86-755-82973805 fax: +86-755-82973550 e-mail: sales@hoper f .com http://ww w .hoper f .com 1. general description the rfm92w/93w incorporates the lora tm ? spread spectrum modem which is capable of achieving significantly longer range than existing systems based on fsk or ook modulation. with this new modulation scheme sensitivities 8 db better than equivalent fsk can be achieved with a low-cost, low-tolerance crystal reference. this increase in link budget provides much longer range and robustness without the need for a tcxo or external amplification. lora tm ? also provides significant advances in selectivity and blocking performanc e, further improving communication reliability. for maximum flexibility the user may decide on the spread spectrum modulation bandwidth (bw), spreading factor (sf) and error correction rate (cr). another benefit of the spread modulation is that each spreading factor is orthogonal - thus multiple transmitted signals can occupy the same channel without interfering. this also permits simple coexistence with existing fsk based systems. standard gfsk, fsk, ook, and gmsk modulation is also provided to allow compatibility with existing systems or standards such as wireless mbus and ieee 802.15.4g. the rfm92w offers three bandwidth options of 125 khz, 250 khz, and 500 khz with spreading factors ranging from 6 to 12. the rfm93w offers the same bandwidth options with spreading factors from 6 to 9. 1.1. simplified block diagram figure 1. rfm92w/93w block diagram rfm92w/93w
rfm92w / 93w v 3.0 page 11 ? t el: +86-755-82973805 fax: +86-755-82973550 e-mail: sales@hoper f .com http://ww w .hoper f .com 1.2. product versions the features of the two product variants rfm92w and rfm93w are detailed in the following table. table 1 rfm92w/93w device variants and key parameters part number frequency range lora tm ? parameters spreading factor bandwidth effective bitrate sensitivity rfm92w 860 - 1020 mhz 6 - 12 125 - 500 khz 0.24 - 37.5 kbps -117 to -137 dbm rfm93w 860 - 1020 mhz 6 - 9 125 - 500 khz 1.7 - 37.5 kbps -117 to -130 dbm 1.3. pin diagram the following diagram shows the pin arrangement of the qfn package, top view. figure 2. pin diagram ?
rfm92w / 93w v 3.0 page 12 ? t el: +86-755-82973805 fax: +86-755-82973550 e-mail: sales@hoper f .com http://ww w .hoper f .com 1.4. pin description table 2 pin description number name type description 1 ? gnd - ? ground ? 2 ? miso i ? spi data output ? 3 ? mosi o ? spi data input ? 4 ? sck i ? spi clock input ? 5 ? nss i ? spi chip select input ? 6 ? reset i/o ? reset trigger input ? 7 ? dio5 i/o ? digital i/o, software configured ? 8 ? gnd - ? ground ? 9 ant - ? rf signal output/input. ? 10 gnd - ? ground ? 11 dio3 i/o ? digital i/o, software configured ? 12 dio4 i/o ? digital i/o, software configured ? 13 3.3v - ? supply voltage ? 14 dio0 i/o ? digital i/o, software configured ? 15 dio1 i/o ? digital i/o, software configured ? 16 dio2 i/o ? digital i/o, software configured ?
rfm92w / 93w v 3.0 page 13 ? t el: +86-755-82973805 fax: +86-755-82973550 e-mail: sales@hoper f .com http://ww w .hoper f .com 1.5. package marking figure 3. package marking
rfm92w / 93w v 3.0 page 14 ? t el: +86-755-82973805 fax: +86-755-82973550 e-mail: sales@hoper f .com http://ww w .hoper f .com 2. electrical characteristics 2.1. esd notice the rfm92w/93w is a high performance radio frequency device. it satisfies: ? class ii of the jedec standard jesd22-a114-b (human body model) on all pins. ? class iii of the jedec standard jesd22-c101c (charged device model) on all pins it should thus be handled with all the necessary esd precautions to avoid any permanent damage. 2.2. absolute maximum ratings stresses above the values listed below may cause permanent device failure. exposure to absolute maximum ratings for extended periods may affe ct device reliability. table 3 absolute maximum ratings symbol description min max unit vddmr supply voltage -0.5 3.9 v tmr temperature -55 +115 c tj junction temperature - +125 c pmr rf input level - +10 dbm note specific ratings apply to +20 dbm operation (see section 5.4.3). 2.3. operating range table 4 operating range symbol description min max unit vddop supply voltage 1.8 3.7 v top operational temperature range -20 +70 c clop load capacitance on digital ports - 25 pf ml rf input level - +10 dbm note a specific supply voltage range applies to +20 dbm operation (see section 5.4.3). 2.4. thermal properties table 5 operating range symbol description min typ max unit theta_ja package ja (junction to ambient) - 22.185 - c/w theta_jc package jc (junction to case ground paddle) - 0.757 - c/w
rfm92w / 93w v 3.0 page 15 ? t el: +86-755-82973805 fax: +86-755-82973550 e-mail: sales@hoper f .com http://ww w .hoper f .com 2.5. chip specification the tables below give the electrical specifications of the transceiver under the following conditions: supply voltage vbat1 = vbat2 = vdd = 3.3 v, temperature = 25 c, fxosc = 32 mhz, f rf = 915 mhz, pout = +13 dbm, 2 level fsk modulation without pre-filtering, fda = 5 khz, bit rate = 4.8 kbps and terminated in a matched 50 ohm impedance, unless otherwise specified. shared rx and tx path matching. note unless otherwise specified, the performance in the 868 mhz band is identical or better. 2.5.1. power consumption table 6 power consumption specification symbol description conditions min typ max unit iddsl supply current in sleep mode - 0.1 1 ua iddidle supply current in idle mode rc oscillator enabled - 1.5 - ua iddst supply current in standby mode crystal oscillator enabled - 1.4 1.6 ma iddfs supply current in synthesizer mode fsrx - 4.5 - ma iddr supply current in receive mode lnaboost off lnaboost on - - 10.5 11.2 - - ma iddt supply current in transmit mode with impedance matching rfop = +20 dbm on pa_boost rfop = +17 dbm on pa_boost rfop = +13 dbm on rfo pin rfop = + 7 dbm on rfo pin - - - - 125 90 28 18 - - - - ma ma ma ma 2.5.2. frequency synthesis table 7 frequency synthesizer specification symbol description conditions min typ max unit frf synthesizer frequency range programmable 860 - 1020 mhz fxosc crystal oscillator frequency - 32 - mhz ts_osc crystal oscillator wake-up time - 250 - us ts_fs frequency synthesizer wake-up time to plllock signal from standby mode - 60 - us ts_hop frequency synthesizer hop time at most 10 khz away from the tar- get frequency 200 khz step 1 mhz step 5 mhz step 7 mhz step 12 mhz step 20 mhz step 25 mhz step - - - - - - - 20 20 50 50 50 50 50 - - - - - - - us us us us us us us fstep frequency synthesizer step fstep = fxosc/2 19 - 61.0 - hz frc rc oscillator frequency after calibration - 62.5 - khz
rfm92w / 93w v 3.0 page 16 ? t el: +86-755-82973805 fax: +86-755-82973550 e-mail: sales@hoper f .com http://ww w .hoper f .com brf bit rate, fsk programmable values (1) 1.2 - 300 kbps bro bit rate, ook programmable 1.2 - 32.768 kbps bra bit rate accuracy abs(wanted br - available br) - - 250 ppm fda frequency deviation, fsk (1) programmable fda + brf/2 =< 250 khz 0.6 - 200 khz note for maximum bit rate the maximum modulation index is 0.5. 2.5.3. fsk/ook mode receiver all receiver tests are performed with rxbw = 10 khz (single side bandwidth) as programmed in regrxbw , receiving a pn15 sequence. sensitivities are reported for a 0.1% ber (with bit synchronizer enabled), unless otherwise specified. blocking tests are performed with an unmodulated interferer. the wanted signal power for the blocking immunity, acr, iip2, iip3 and amr tests is set 3 db above the receiver sensitivity level. table 8 receiver specification symbol description conditions min typ max unit rfs_f direct tie of rfi and rfo pins, shared rx, tx paths fsk sensitiv- ity, highest lna gain. fda = 5 khz, br = 1.2 kbps fda = 5 khz, br = 4.8 kbps fda = 40 khz, br = 38.4 kbps* fda = 20 khz, br = 38.4 kbps** fda = 62.5 khz, br = 250 kbps*** - - - - - -119 -115 -105 -106 -92 - - - - - dbm dbm dbm dbm dbm split rf paths, lnaboost is turned on, the rf switch insertion loss is not accounted for. fda = 5 khz, br = 1.2 kbps fda = 5 khz, br = 4.8 kbps fda = 40 khz, br = 38.4 kbps* fda = 20 khz, br = 38.4 kbps** fda = 62.5 khz, br = 250 kbps*** - - - - - -123 -119 -110 -110 -97 - - - - - dbm dbm dbm dbm dbm rfs_o ook sensitivity, highest lna gain shared rx, tx paths br = 4.8 kbps br = 32 kbps - - -117 -108 - - dbm dbm ccr co-channel rejection - -9 - db acr adjacent channel rejection fda = 2 khz, br = 1.2 kbps, rxbw = 5.2 khz offset = +/- 25 khz - 54 - db fda = 5 khz, br=4.8kbps offset = +/- 25 khz offset = +/- 50 khz - - 50 50 - - db db bi blocking immunity offset = +/- 1 mhz offset = +/- 2 mhz offset = +/- 10 mhz - - - 73 78 87 - - - db db db amr am rejection, am modulated interferer with 100% modulation depth, fm = 1 khz, square offset = +/- 1 mhz offset = +/- 2 mhz offset = +/- 10 mhz - - - 73 78 87 - - - db db db
rfm92w / 93w v 3.0 page 17 ? t el: +86-755-82973805 fax: +86-755-82973550 e-mail: sales@hoper f .com http://ww w .hoper f .com symbol description conditions min typ max unit rf_op rf output power in 50 ohms on rfo pin (high efficiency pa). programmable with steps max min +11 - +14 -1 - - dbm dbm rf_ op_v rf output power stability on rfo pin versus voltage supply vdd = 2.5 v to 3.3 v vdd = 1.8 v to 3.7 v - - 3 8 - - db db rf_oph rf output power in 50 ohms, on pa_boost pin (regulated pa) programmable with 1db steps max min - - +17 +2 - - dbm dbm rf_oph_ max max rf output power, on pa_boost pin high power mode - +20 - dbm rf_ oph_v rf output power stability on pa_- boost pin versus voltage supply. vdd = 2.4 v to 3.7 v - +/-1 - db rf_t rf output power stability versus from t = -40 c to +85 c - +/-1 - db phn transmitter phase noise low consumption pll, 915 mhz 50 khz offset 400 khz offset 1 mhz offset - - - -102 -114 -120 - - - dbc/ hz low phase noise pll, 915 mhz 50 khz offset 400 khz offset 1 mhz offset - - - -106 -117 -122 - - - dbc/ hz iip2 2nd order input intercept point unwanted tones are 20 mhz above the lo highest lna gain - +57 - dbm iip3 3rd order input intercept point unwanted tones are 1 mhz and 1.995 mhz above the lo highest lna gain g1 lna gain g2, 4db sensitivity reduction. - - -12.5 -8.5 - - dbm dbm bw_ssb single side channel filter bw programmable 2.7 - 250 khz imr image rejection wanted signal power sensitivity +3 db ber = 0.1% - 48 - db ima image attenuation - 57 - db dr_rssi rssi dynamic range agc enabled min max - - -127 0 - - dbm dbm * rxbw = 83 khz (single side bandwidth) ** rxbw = 50 khz (single side bandwidth) *** rxbw = 250 khz (single side bandwidth) 2.5.4. fsk/ook mode transmitter table 9 transmitter specification temperature on both rf pins.
rfm92w / 93w v 3.0 page 18 ? t el: +86-755-82973805 fax: +86-755-82973550 e-mail: sales@hoper f .com http://ww w .hoper f .com acp transmitter adjacent channel power (measured at 25 khz offset) bt = 1. measurement conditions as defined by en 300 220-1 v2.3.1 - - -37 dbm ts_tr transmitter wake up time, to the first rising edge of dclk frequency synthesizer enabled, paramp = 10 us, br = 4.8 kbps - 120 - us 2.5.5. electrical specification for lora tm ? modulation the table below gives the electrical specif ications for the transceiver operating with lora tm ??? modulation. following conditions apply unless otherwise specified: ? supply voltage = 3.3 v. ? temperature = 25 c. ? f xosc = 32 mhz. ? band: f rf = 915 mhz. ? bandwidth (bw) = 125 khz. ? spreading factor (sf) = 12. ? error correction code (ec) = 4/6. ? packet error rate (per)= 1% ? crc on payload enabled. ? output power = 13 dbm in transmission. ? payload length = 10 bytes. ? preamble length = 12 symbols (programmed register preamblelength=8 ) ? with matched impedances. symbol description conditions min. typ max unit iddr_l supply current in receiver lora tm ? mode lnaboost off, bw = 125 khz lnaboost off, bw = 250 khz lnaboost off, bw = 500 khz - - - 9.7 10.5 12 - - - ma ma ma lnaboost on, bw = 125 khz lnaboost on, bw = 250 khz lnaboost on, bw = 500 khz - - - 10.8 11.6 13 - - - ma ma ma iddt_l supply current in transmitter mode rfop = 13 dbm rfop = 7 dbm - - 28 18 - - ma ma iddt_h_l supply current in transmitter mode with an external impedance transformation using pa_boost pin rfop = 17 dbm - 90 - ma bi_l blocking immunity, frf=868 mhz cw interferer offset = +/- 1 mhz offset = +/- 2 mhz offset = +/- 10 mhz - 82.5 86.5 89 db db db iip3_l 3rd order input intercept point, highest lna gain, frf=868 mhz, cw interferer f1 = frf + 1 mhz f2 = frf + 1.995 mhz - -12.5 - dbm table 10. electrical specifications: lora tm ? mode
rfm92w / 93w v 3.0 page 19 ? t el: +86-755-82973805 fax: +86-755-82973550 e-mail: sales@hoper f .com http://ww w .hoper f .com symbol description conditions min. typ max unit iip2_l 2nd order input intercept point, highest lna gain, frf = 868 mhz, cw interferer. f1 = frf + 20 mhz f2 = frf+ 20 mhz + f - 57 - dbm br_l bit rate, long-range mode from sf6, cr = 4/5, bw = 500 khz to sf12, cr = 4/8, bw = 125 khz 0.24 - 37.5 kbps rfs_l125 rf sensitivity, long-range mode, highest lna gain, lna boost, 125 khz bandwidth using split rx/tx path sf = 6 sf = 7 sf = 8 sf = 9 sf = 10 sf = 11 sf = 12 - - - - - - - -121 -124 -127 -130 -133 -135 -137 - - - - - - - dbm dbm dbm dbm dbm dbm dbm rfs_l250 rf sensitivity, long-range mode, highest lna gain, lna boost, 250 khz bandwidth using split rx/tx path sf = 6 sf = 7 sf = 8 sf = 9 sf = 10 sf = 11 sf = 12 - - - - - - - -118 -122 -125 -128 -130 -132 -135 - - - - - - - dbm dbm dbm dbm dbm dbm dbm rfs_l500 rf sensitivity, long-range mode, highest lna gain, lna boost, 500 khz bandwidth using split rx/tx path sf = 6 sf = 7 sf = 8 sf = 9 sf = 10 sf = 11 sf = 12 - - - - - - - -111 -116 -119 -122 -125 -128 -129 - - - - - - - dbm dbm dbm dbm dbm dbm dbm ccr_lcw co-channel rejection single cw tone = sens +6 db 1% per sf = 7 sf = 8 sf = 9 sf = 10 sf = 11 sf = 12 - - - - - - 5 9.5 12 14.4 17 19.5 - - - - - - db db db db db db ccr_ll co-channel rejection interferer is a lora tm ? signal using same bw and same sf. pw = sensitivity +3 db -6 db acr_lcw adjacent channel rejection frf = 868 mhz interferer is 1.5*bw_l from the wanted signal center frequency 1% per, single cw tone = sensitivity + 3 db sf = 7 sf = 12 - - 60 72 - - db db imr_lcw image rejection after calibration 1% per, single cw tone = sens +3 db - 66 - db ferr_l maximum tolerated frequency offset between transmitter and receiver, no sensitivity degradation bw_l = 125 khz bw_l = 250 khz bw_l = 500 khz -30 -60 -120 - - - 30 60 120 khz khz khz table 10. electrical specifications: lora tm ? mode
rfm92w / 93w v 3.0 page 20 ? t el: +86-755-82973805 fax: +86-755-82973550 e-mail: sales@hoper f .com http://ww w .hoper f .com 2.5.6. digital specification conditions: temp = 25 c, vdd = 3.3 v, fxosc = 32 mhz, unless otherwise specified. table 11 digital specification symbol description conditions min typ max unit v ih digital input level high 0.8 - - vdd v il digital input level low - - 0.2 vdd v oh digital output level high imax = 1 ma 0.9 - - vdd v ol digital output level low imax = -1 ma - - 0.1 vdd f sck sck frequency - - 10 mhz t ch sck high time 50 - - ns t cl sck low time 50 - - ns t rise sck rise time - 5 - ns t fall sck fall time - 5 - ns t setup mosi setup time from mosi change to sck rising edge 30 - - ns t hold mosi hold time from sck rising edge to mosi change 20 - - ns t nsetup nss setup time from nss falling edge to sck rising edge 30 - - ns t nhold nss hold time from sck falling edge to nss rising edge, normal mode 100 - - ns t nhigh nss high time between spi accesses 20 - - ns t_data data hold and setup time 250 - - ns
rfm92w / 93w v 3.0 page 21 ? t el: +86-755-82973805 fax: +86-755-82973550 e-mail: sales@hoper f .com http://ww w .hoper f .com 3. rfm92w/93w features this section gives a high-level overview of the functionality of the rfm92w/93w low-power, highly integrated transceiver. the following figure shows a simplified block diagram of the rfm92w/93w. figure 4. simplified rfm92w block schematic diagram rfm92w/93w is a half-duplex, low-if transceiver. here the received rf signal is first amplified by the lna. the lna input is single ended to minimize the external bom and for ease of design. following the lna output, the conversion to differential is made to improve the second order linearity and harmonic rejection. the signal is then down-converted to in- phase and quadrature (i&q) components at the intermediate frequency (if) by the mixer stage. a pair of sigma delta adcs then perform data conversion, with all subsequent signal processing and demodulation performed in the digital domain. the digital state machine also controls the automa tic frequency correction (afc), received signal strength indicator (rssi) and automatic gain control (agc). it also features the higher-level packet and protocol level functionality of the top level sequencer (tls). the frequency synthesizer generates the local oscillator (lo) frequency for both receiver and transmitter. the pll is optimized for user-transparent low lock time and fast auto-calibrating operation. in transmission, frequency modulation is performed digitally within the pll bandwidth. the pll also features optional prefiltering of the bit stream to improve spectral purity. rfm92w/93w feature a pair of rf power amplifiers. the first, connected to rfo, can deliver up to +14 dbm, is unregulated for high power efficiency and can be connected directly to the rf receiver input via a pair of passive components to form a single antenna port high efficiency transceiver. the second pa, connected to the pa_boost pin and can deliver up to +20 dbm via a dedicated matching network. rfm92w/93w also include two timing references, an rc oscillator and a 32 mhz crystal oscillator. all major parameters of the rf front end and digital state machine are fully configurable via an spi interface which gives access to rfm92w/93w?s configuration registers. this includes a mode auto sequencer that oversees the transition and calibration of the rfm92w/93w between intermediate modes of operation in the fastest time possible.
rfm92w / 93w v 3.0 page 22 ? t el: +86-755-82973805 fax: +86-755-82973550 e-mail: sales@hoper f .com http://ww w .hoper f .com the rfm92w/93w are equipped with both standard fsk and long range spread spectrum ( lora tm ) modems. depending upon the mode selected either conventional ook or fsk modulation may be employed or the lora tm ? spread spectrum modem. 3.1. lora tm ? modem the lora tm ?? modem uses a proprietary spread spectrum modulation technique. this modulation, in contrast to legacy modulation techniques, permits an increase in link budget and increased immunity to in-band interference. at the same time the frequency tolerance requirement of the crystal reference oscillator is relaxed - allowing a performance increase for a reduction in system cost. for a fuller description of the design trade-offs and operation of the rfm92w/93w please consult section 4.1 of the datasheet. 3.2. fsk/ook modem in fsk/ook mode the rfm92w/93w supports standard modulation techniques including ook, fsk, gfsk, msk and gmsk. the rfm92w/93w is especially suited to narrow band communication thanks the low-if architecture employed and the built-in afc functionality. for full information on the fsk/ook modem please consult section 4.2 of this document.
rfm92w / 93w v 3.0 page 23 ? t el: +86-755-82973805 fax: +86-755-82973550 e-mail: sales@hoper f .com http://ww w .hoper f .com 4. rfm92w/93w digital electronics 4.1. the lora tm ? modem the lora tm ? modem uses spread spectrum modulation and forward error correction techniques to increase the range and robustness of radio communication links compared to traditional fsk or ook based modulation. examples of the performance improvement possible for several settings are summ arised in the table below. the spreading factor and error correction rate are design variables that allow the designer to optimise the trade-off between occupied bandwidth, data rate, link budget improvement and immunity to interference. in the table below a coding rate of 4/5 is used. table 12 example lora tm ? modem performances bandwidth (khz) spreading factor nominal rb (bps) sensitivity (dbm) 125 6 9380 -122 125 12 293 -137 250 6 18750 -119 250 12 586 -134 500 6 3750 -116 500 12 1172 -131 typically such performance gains require high stability frequency references, with lora tm ? this is not the case. low crystal tolerances are easily accommodated reducing the overall bom cost for a given increase in link budget. for european operation the range of crystal tolerances acceptable for each sub-band (of the erc 70-03) is given in the specifications table. for us based operation a frequency hopping mode is available that automates both the lora tm ? spread spectrum and frequency hopping spread spectrum processes. another important facet of the lora tm ? modem is its increased immunity to interference. the lora tm ? modem is capable of co-channel gmsk rejection of up to 25 db. this immunity to interference permits the simple coexistence of lora tm ? modulated systems either in bands of heavy spectral usage or in hybrid communication networks that use lora tm ? to extend range when legacy modulation schemes fail.
rfm92w / 93w v 3.0 page 24 ? t el: +86-755-82973805 fax: +86-755-82973550 e-mail: sales@hoper f .com http://ww w .hoper f .com 4.1.1. link design using the lora tm ? modem 4.1.1.1. overview the lora tm ? modem is setup as shown in the following figure. this configuration permits the simple replacement of the fsk modem with the lora tm ? modem via the configuration register setting regopmode. this change can be performed on the fly (in sleep operating mode) thus permitting the use of both standard fsk or ook in conjunction with the long range capability. the lora tm ? modulation and demodulation process is proprietary, it uses a form of spread spectrum modulation combined with cyclic error correction co ding. the combined influence of these two fa ctors is an increase in link budget and enhanced immunity to interference. figure 5. lora tm ? modem connectivity a simplified outline of the transmit and receive processes is also shown above. here we see that the lora tm ? modem has an independent dual port data buffer fifo that is accessed through an spi interface common to all modes. upon selection of lora tm ? mode, the configuration register mapping of the rfm92w/9 3w changes. for full details of this change please consult the register description of section 6. so that it is possible to optimise the lora tm ? modulation for a given application, access is given to the designer to three critical design parameters. each one permitting a trade off between link budget, immunity to interference, spectral occupancy and nominal data rate. these parameters are spreading factor, modulation bandwidth and error coding rate.
rfm92w / 93w v 3.0 page 25 ? t el: +86-755-82973805 fax: +86-755-82973550 e-mail: sales@hoper f .com http://ww w .hoper f .com 4.1.1.2. spreading factor the spread spectrum lora tm ? modulation is performed by representing each bit of payload information by multiple chips of information. the rate at which the spread informat ion is sent is referred to as the symbol rate ( rs ), the ratio between the nominal symbol rate and chip rate is the spreading factor and represents the number of symbols sent per bit of information. the range of values accessible with the lora tm ? modem are shown in the following table. table 13 range of spreading factors spreadingfactor (regmodemconfig2) spreading factor (chips / symbol) lora demodulator snr 6 64 -5 db 7 128 -7.5 db 8 256 -10 db 9 512 -12.5 db 10 1024 -15 db 11 2048 -17.5 db 12 4096 -20 db note that the spreading factor, spreadingfactor , must be known in advance on both transmit and receive sides of the link as different spreading factors are orthogonal to each other. no te also the resulting signal to noise ratio (snr) required at the receiver input. it is the capability to receive signals with negative snr that increases th e sensitivity, so link budget an d range, of the lora receiver. spreading factor 6 sf = 6 is a special use case for the highest data rate transmission possible with the lora modem. to this end several settings must be activated in the rfm92w/93w registers when it is in use: ? set spreadingfactor = 6 in regmodemconfig2 ? the header must be set to implicit mode. ? write bits 2-0 of register address 0x31 to value "0b101". ? write register address 0x37 to value 0x0c. 4.1.1.3. coding rate to further improve the robustness of the link the lora tm ?? modem employs cyclic error coding to perform forward error detection and correction. such error coding incurs a transmission overhead - the resultant additional data overhead per transmission is shown in the table below. table 14 cyclic coding overhead codingrate (regmodemconfig1) cyclic coding rate overhead ratio 1 4/5 1.25 2 4/6 1.5 3 4/7 1.75 4 4/8 2
rfm92w / 93w v 3.0 page 26 ? t el: +86-755-82973805 fax: +86-755-82973550 e-mail: sales@hoper f .com http://ww w .hoper f .com r s w forward error correction is particularly efficient in improving the reliability of the link in the presence of interference. so that the coding rate (and so robustness to interference) can be changed in response to channel conditions - the coding rate can optionally be included in the packet header for use by the receiver. please consult section 4.1.1.6 for more information on the lora tm ? packet and header. 4.1.1.4. signal bandwidth an increase in signal bandwidth permits the use of a higher effective data rate, thus reducing transmission time at the expense of reduced sensitivity improvement. there are of course regulatory constraints in most countries on the permissible occupied bandwidth. contrary to the fsk modem, which is described in terms of the single sideband bandwidth, the lora tm ?? modem bandwidth refers to the double sideband bandwidth (or total channel bandwidth). the range of bandwidths relevant to most regulatory situations is given in the lora tm ? modem specifications table (see section 2.5.5). bandwidth (khz) spreading factor coding rate nominal rb (bps) sensitivity (dbm) 125 12 4/5 293 -136 250 12 4/5 586 -133 500 12 4/5 1172 -130 4.1.1.5. lora tm ? transmission parameter relationship with a knowledge of the key parameters that can be controlled by the user we define the lora tm ? symbol rate as: bw = -------- 2 sf where bw is the programmed bandwidth and sf is the spreading factor. the transmitted signal is a constant envelope signal. equivalently, one chip is sent per second per hz of bandwidth.
rfm92w / 93w v 3.0 page 27 ? t el: +86-755-82973805 fax: +86-755-82973550 e-mail: sales@hoper f .com http://ww w .hoper f .com 4.1.1.6. lora tm ? packet structure the lora tm ? modem employs two types of packet format, explicit and implicit. the explicit packet includes a short header that contains information about the number of bytes, coding rate and whether a crc is used in the packet. the packet format is shown in the following figure. the lora tm ? packet comprises three elements: ? a preamble. ? an optional header. ? the data payload. preamble figure 6. lora tm ? packet structure the preamble is used to synchronize receiver with the incoming data flow. by default the packet is configured with a 12 symbol long sequence. this is a programmable variable so the preamble length may be extended, for example in the interest of reducing to receiver duty cycle in receive in tensive applications. the transmitted preamble length may be changed by setting the registers regpreamblemsb and regpreamblelsb from 6 to 65535, yielding total preamble lengths of 6 + 4 to 65535 + 4 symbols, once the fixed overhead of the preamble data is considered. this permits the transmission of near arbitrarily long preamble sequences. the receiver undertakes a preamble detection process that periodically restarts. for this reason the preamble length should be configured identical to the transmitter preamble length. where the preamble length is not known, or can vary, the maximum preamble length should be programmed on the receiver side. header depending upon the chosen mode of operation two types of header are available. the header type is selected by the implictheadermodeon bit found within the regmodemconfig1 register. explicit header mode this is the default mode of operation. here the header provides information on the payload, namely: ? the payload length in bytes. ? the forward error correction code rate ? the presence of an optional 16-bits crc for the payload.
rfm92w / 93w v 3.0 page 28 ? t el: +86-755-82973805 fax: +86-755-82973550 e-mail: sales@hoper f .com http://ww w .hoper f .com the header is transmitted with maximum error correction code (4/8). it also has its own crc to allow the receiver to discard invalid headers. i mplicit header mode in certain scenarios, where the payload, coding rate and crc presence are fixed or known in advance, it may be advantageous to reduce transmission time by invoking implicit header mode. in this mode the header is removed from the packet. in this case the payload length, error coding rate and presence of the payload crc must be manually configured on both sides of the radio link. note that with sf = 6 selected implicit header mode is the only mode of operation possible. low data rate optimization given the potentially long duration of the packet at high spreading factors the option is given to improve the robustness of the transmission to variations in frequency over the duration of the packet transmission and reception. the bit lowdatarateoptimize increases the robustness of the lora link at these low effective data rates, its use is mandated with spreading factors of 11 and 12 at 125 khz bandwidth. payload the packet payload is a variable-length field that contains the actual data coded at the error rate either as specified in the header in explicit mode or in the register settings in implicit mode. an optional crc may be appended. for more information on the payload and how it is loaded from the data buffer fifo please see section 4.1.2.3. 4.1.1.7. time on air for a given combination of spreading factor (sf), coding ra te (cr) and signal bandwidth (bw) the total on-the-air transmission time of a lora tm ? packet can be calculated as follows. from the definition of the symbol rate it is convenient to define the symbol period: ts = -- 1 --- rs the lora packet duration is the sum of the duration of the pr eamble and the transmitted packet. the preamble length is calculat ed as follows: t pr ea mble = ( n pr ea m b l e + 4.25 ) t sy m where n preamble is the programmed preamble length, taken from the registers regpreamblemsb and regpreamblelsb . the payload duration depends upon the header mode that is enabled. the following formula gives the number of payload symbols. where pl is the number of bytes of payload, sf is the spreadin g factor, ih = 1 when implicit header mode is enabled and ih = 0 when explicit header mode is used. de set to 1 indicates the use of the low data rate optimization, 0 when disabled. t paylo ad = n paylo ad + t sy m ?
rfm92w / 93w v 3.0 page 29 ? t el: +86-755-82973805 fax: +86-755-82973550 e-mail: sales@hoper f .com http://ww w .hoper f .com addition of the preamble and payload durations gives the total packet time on air. t packe t = t pr eam b le + t pa yl oad 4.1.1.8. frequency hopping with lora tm ? ? frequency hopping spread spectrum (fhss) is typically employed when the duration of a single packet could exceed regulatory requirements relating to the maximum permissible ch annel dwell time. this is most notably the case in us operation where the 902 to 928 mhz ism band which makes provision for frequency hopping operation. to ease the implementation of fhss systems the frequency hopping mode of the lora tm ??? modem can be enabled by setting freqhoppingperiod to a non-zero value in register reghopperiod . principle of operation the principle behind the fhss scheme is that a portion of each lora tm ? packet is transmitted on each hopping channel from a look up table of frequencies managed by the host microcontroller. after a predetermined hopping period the transmitter and receiver change to the ne xt channel in a predefined list of hoppin g frequencies to co ntinue transmission and reception of the next portion of the packet. the time which the transmission will dwell in any given channel is determined by freqhoppingperiod which is an integer multiple of symbol periods: hoppingperiod [ s ] = ts f reqhoppingpe riod the frequency hopping transmission and reception process starts at channel 0. the preamble and header are transmitted first on channel 0. at the beginning of each transmission the channel counter fhsspresentchannel (located in the register reghopchannel ) is incremented and the interrupt signal fhsschangechannel is generated. the new frequency must then be programmed within the hopping period to ensure it is taken into account for t he next hop, the interrupt changechannelfhss is then to be cleared by writing a logical ?1?. fhss reception always starts on channel 0. the receiver waits for a valid preamble detection before starting the frequency hopping process as described above. note that in the eventuality of header crc corruption, the receiver will automatically request channel 0 and recommence the valid preamble detection process.
rfm92w / 93w v 3.0 page 30 ? t el: +86-755-82973805 fax: +86-755-82973550 e-mail: sales@hoper f .com http://ww w .hoper f .com timing of channel updates the interrupt requesting the channel change, fhsschannelchange, is generated upon transition to the new frequency. the frequency hopping process is illustrated in the diagram below: figure 7. interrupts generated in the case of successful frequency hopping communication.
rfm92w / 93w v 3.0 page 31 ? t el: +86-755-82973805 fax: +86-755-82973550 e-mail: sales@hoper f .com http://ww w .hoper f .com 4.1.2. lora tm ? digital interface the lora tm ? modem comprises three types of digital interface, static configuration registers, status registers and a fifo data buffer. all are accessed through the rfm92w/93w?s spi interface - full details of each type of register are given below. full listings of the register addresses used for spi access are given in section 6.3. 4.1.2.1. lora tm ? configuration registers configuration registers are accessed through the spi interface. registers are readable in all device mode including sleep. however, they should be written only in sleep and stand-by modes . please note that the automatic top level sequencer (tls modes) are not available in lora tm ?? mode and the configuration register mapping changes as shown in table 39 . the content of the lora tm ? configuration registers is retained in fsk/ook mode. for the functionality of mode registers common to both fsk/ook and lora tm ? mode, please consult the analog and rf front end section of this document (section 5). 4.1.2.2. status registers status registers provide status information during receiver operation. 4.1.2.3. lora tm ? mode fifo data buffer overview the rfm92w/93w is equipped with a 256 byte ram data buffer which is uniquely accessible in lora mode. this ram area, herein referred to as the fifo data buffer, is fully customizable by the user and allows access to the received, or to be transmitted, data. all access to the lora tm ? fifo data buffer is done via the spi interface. a diagram of the user defined memory mapping of the fifo data buffer is shown below. these fifo data buffer can be read in all operating modes except sleep and store data related to the last receive operation performed. it is automatically cleared of old content upon each new transition to receive mode. figure 8. lora tm ? data buffer
rfm92w / 93w v 3.0 page 32 ? t el: +86-755-82973805 fax: +86-755-82973550 e-mail: sales@hoper f .com http://ww w .hoper f .com principle of operation thanks to its dual port configuration, it is possible to simultaneously store both transmit and receive information in the fifo data buffer. the register regfifotxbaseaddr specifies the point in memory where the transmit information is stored. similarly, for receiver operation, the register regfiforxbaseaddr indicates the point in the data buffer where information will be written to in event of a receive operation. by default, the device is configured at power up so that half of the available memory is dedicated to rx ( regfiforxbaseaddr initialized at address 0x00) and the other half is dedicated for tx ( regfifotxbaseaddr initialized at address 0x80). however, due to the contiguous nature of the fifo data buffer, the base addresses for tx and rx are fully configurable across the 256 byte memory area. each pointer can be set independently anywhere within the fifo. to exploit the maximum fifo data buffer size in transmit or receive mode, the whole fifo data buffer can be used in each mode by setting the base addresses regfifotxbaseaddr and regfiforxbaseaddr at the bottom of the memory (0x00). the fifo data buffer is cleared when the device is put in sleep mode, consequently no access to the fifo data buffer is possible in sleep mode. however, the data in the fifo data buffer are retained when switching across the other lora tm ? modes of operation, so that a received packet can be retrans mitted with minimum data handling on the controller side. the fifo data buffer is not self-clearing (unless if the device is put in sleep mode) and the data will only be ?erased? when a new set of data is written into the occupied memory location. thefifo data buffer location to be read from, or written to, via the spi interface is defined by the address pointer regfifoaddrptr . before any read or write operation it is hence necessa ry to initialize this poin ter to the corresponding base value. upon reading or writing to the fifo data buffer ( regfifo ) the address pointer will th en increment automatically. the register regrxnbbytes defines the size of the memory location to be written in the event of a successful receive operation. the register regpayloadlength indicates the size of the memory location to be transmitted. in implicit header mode, the register regrxnbbytes is not used as the number of payload bytes is known. otherwise, in explicit header mode, the initial size of the receive buffer is set to the packet length in the received header. the register regfiforxcurrentaddr indicates the location of the last packet received in the fifo so that the last packet received can be easily read by pointing the register regfifoaddrptr to this register. it is important to notice that all the re ceived data will be written to the fifo da ta buffer even if the crc is invalid, permit ting user defined post processing of corrupted data. it is also important to note that when receiving, if the packet size exceeds the buffer memory allocated for the rx, it will overwrite the transmit portion of the data buffer.
rfm92w / 93w v 3.0 page 33 ? t el: +86-755-82973805 fax: +86-755-82973550 e-mail: sales@hoper f .com http://ww w .hoper f .com 4.1.3. operation of the lora tm ? modem 4.1.3.1. operating mode control the operating modes of the lora tm ? modem are accessed by enabling lora tm ? mode (setting the longrangemode bit of regopmode ). depending upon the operating mode selected the range of functionality and register access is given by the following table: table 15 lora tm ? operating mode functionality operating mode description sleep low-power mode. in this mode only spi and configuration registers are accessible. lora ? fifo is not accessible. note that this is the only mode permi ssible to switch between fsk/ook mode and lora ? mode. stand-by both crystal oscillator and lora ? baseband blocks are turned on. rf front-end and plls are disabled fstx this is a frequency synthesis mode for transmission. the pll selected for transmission is locked and active at the transmit frequency. the rf front-end is off. fsrx this is a frequency synthesis mode for reception. the pll selected for reception is locked and active at the receive frequency. the rf front-end is off. tx when activated the rfm92w/93w powers all remaining blocks required for transmit, ramps the pa, transmits the packet and returns to stand-by mode. rxcontinuous when activated the rfm92w/93w powers all remaining blocks required for reception, processing all received data until a new user request is made to change operating mode. rxsingle when activated the rfm92w/93w powers all remaining blocks required for reception, remains in this state until a valid packet has been received and then returns to stand-by mode. cad when in cad mode, the device will check a gi ven channel to detect lora preamble signal it is possible to access any mode from any other mode by changing the value in the regopmode register.
rfm92w / 93w v 3.0 page 34 ? t el: +86-755-82973805 fax: +86-755-82973550 e-mail: sales@hoper f .com http://ww w .hoper f .com f = x o s c 4.1.4. frequency settings recalling that the frequency step is given by: f ste p ---------------- 2 19 in order to set lo frequency values following registers are available. frf is a 24-bit register which defines carrier frequency. the carrier frequency relates to the register contents by following formula: f rf = f step frf (23,0)
rfm92w / 93w v 3.0 page 35 ? t el: +86-755-82973805 fax: +86-755-82973550 e-mail: sales@hoper f .com http://ww w .hoper f .com 4.1.5. lora tm ? modem state machine sequences the sequence for transmission and reception of data to and from the lora tm ? modem, together with flow charts of typical sequences of operation, are detailed below. data transmission sequence in transmit mode power consumption is optimized by enabling rf, pll and pa blocks only when packet data needs to be transmitted. figure 9 shows a typical lora tm ? transmit sequence. figure 9. lora tm ? modulation transmission sequence. ? static configuration registers can only be accessed in sleep mode, stand-by mode or fstx mode. ? the lora tm ? fifo can only be filled in stand-by mode. ? data transmission is initiated by sending tx mode request. ? upon completion the txdone interrupt is issued and the radio returns to stand-by mode. ? following transmission the radio can be manually placed in sleep mode or the fifo refilled for a subsequent tx operation.
rfm92w / 93w v 3.0 page 36 ? t el: +86-755-82973805 fax: +86-755-82973550 e-mail: sales@hoper f .com http://ww w .hoper f .com lora tm ? transmit data fifo filling in order to write packet data into fifo user should: 1 set fifoaddrptr to fifotxbaseaddrs . 2 write payloadlength bytes to the fifo ( regfifo ) data reception sequence figure 10 shows typical lora tm ? receive sequences for both single and continuous receiver modes of operation. figure 10. lora tm ? receive sequence.
rfm92w / 93w v 3.0 page 37 ? t el: +86-755-82973805 fax: +86-755-82973550 e-mail: sales@hoper f .com http://ww w .hoper f .com the lora tm ? modem can work in two distinct reception modes: 1. single receive mode 2. continuous receive mode single reception operating mode in this mode, the modem searches for a preamble during a given time window. if a preamble hasn?t been found at the end of the time window, the chip generates the rxtimeout interrupt and goes back to stand-by mode. the length of the window (in symbols) is defined by the regsymbtimeout register and should be in the range of 4 (minimum time for the modem to acquire lock on a preamble) up to 1023 symbols. (the default value being 5). if no preamble is detected during this window the rxtimeout i nterrupt is generated and the radio goes back to stand-by mode. at the end of the payload, the rxdone interrupt is generated together with the interrupt payloadcrcerror if the payload crc is not valid. however, even when the crc is not valid, the data are written in the fifo data buffer for post processing. following the rxdone interrupt the radio goes to stand-by mode. the modem will also automatically return in stand-by mode when the interrupts rxdone or rxtimeout are generated. therefore, this mode should only be used when the time window of arrival of the packet is known . in other cases, the rx continuous mode should be used. in rx single mode low-power is achieved by turning off pll and rf blocks as soon as a packet has been received. the flow is as follows: 1 set fifoaddrptr to fiforxbaseaddr . 2 static configuration register device can be written in either sleep mode, stand-by mode or fsrx mode. 3 a single packet receive operation is initiated by selecting the operating mode rxsingle. 4 the receiver will then await the reception of a valid prea mble. once received, the gain of the receive chain is set. following the ensuing reception of a valid header, indicated by the validheader interrupt in explicit mode. the packet reception process commences. once the reception process is complete the rxdone interrupt is set. the radio then returns automatically to stand-by mode to reduce power consumption. 5 the receiver status register payloadcrcerror should be checked for packet payload integrity. 6 if a valid packet payload has been received then the fifo should be read (see payload data extraction below). should a subsequent single packet reception need to be triggered, then the rxsingle operating mode must be re-selected to launch the receive process again - taking care to reset the spi pointer ( fifoaddrptr ) to the base location in memory ( fiforxbaseaddr ). continuous reception operating mode in continuous receive mode the modem scans the channel continuously for a preamble. each time a preamble is detected the modem detects and tracks it until the packet is received and then carries on waiting for the next preamble. if the preamble length exceeds the anticipated value set by the registers regpreamblemsb and regpreamblelsb (measured in symbol periods) the preamble will be dropped and the search for a preamble restarted. however, this scenario will not be flagged by an interrupt. in continuous rx mode, opposite to the single rx mode, when a timeout interrupt is generated, the device will not go in standby mode. in this case, the user mu st simply clear the interrupt wh ile the device carry on waiting for a valid preamble. it is also important to note that the demodulated bytes are writ ten in the data buffer memory in the order received. meaning, the first byte of a new packet is written just after the last byte of the preceding packet. the rx modem address pointer is never reset as long as this mode is enabled. it is therefore necessary for the companion microcontroller controller to handle the address pointer to make sure the fifo data buffer is never full.
rfm92w / 93w v 3.0 page 38 ? t el: +86-755-82973805 fax: +86-755-82973550 e-mail: sales@hoper f .com http://ww w .hoper f .com in continuous mode the received packet processing sequence is given below. 1 whilst in sleep or stand-by mode select rxcont mode. 2 upon reception of a valid header crc the rxdone i nterrupt is set. the radio remain s in rxcont mode waiting for the next rx lora tm ? packet. 3 the payloadcrcerror flag should be checked for packet integrity. 4 if packet has been correctly received the fifo data buffer can be read (see below). 5 the reception process (steps 2 - 4) can be repeated or receiver operating mode exited as desired. in continuous mode status information are available only for the last packet received, i.e. the corresponding registers should be read before the next rxdone arrives. payload data extraction from fifo in order to retrieve received data from fifo the user must ensure that validheader , payloadcrcerror, rxdone and rxtimeout interrupts in the status register regirqflags are not asserted to ensure that packet reception has terminated successfully (i.e. no flags should be set). in case of errors the steps below should be skipped and the packet discarded. in order to retrieve valid received data from the fifo the user must: ? regrxnbbytes indicates the number of bytes that have been received thus far. ? regfifoaddr ptr is a dynamic pointer that indicates precisely where the lora modem received data has been written up to. ? set regfifoaddr ptr to regfiforxcurrentaddr . this sets the fifo pointer to the location of the last packet received in the fifo. the payload can then be extracted by reading the register regfifo, regrxnbbytes times. alternatively, it is possible to manually point to the location of the last packet received, from the start of the current packet, by setting regfifoaddrptr to regfiforxbyteaddr minus regrxnbbytes . the payload bytes can then be read from the fifo by reading the regfifo address regrxnbbytes times. packet filtering based on preamble start the lora tm ?? modem does not automatically filter received packets based upon an address. however, the rfm92w/93w permits software filtering of the received packets based on the contents of the first few bytes of payload. a brief example is given below for a 4 byte address, however, the address length can be selected by the designer. the objective of the packet filtering process is to determine the presence, or otherwise, of a valid packet designed for the receiver. if the packet is not for the receiver then the radi o returns to sleep mode in order to improve battery life.
rfm92w / 93w v 3.0 page 39 ? t el: +86-755-82973805 fax: +86-755-82973550 e-mail: sales@hoper f .com http://ww w .hoper f .com the software packet filtering process follows the steps below: ? each time the rxdone interrupt is received, latch the regfiforxbyteaddr[7:0] register content in a variable, this variable will be called start_address. the regfiforxbyteaddr[7:0] register of the rfm92 gives in real time the address of the last byte written in the data buffer + 1 (or the ad dress at which the next byte will be written by the receive lora tm ? modem). so by doing this, we make sure that the variable start_address always contains the start address of the next packet. ? upon reception of the interrupt validheader, start polling the regfiforxbyteaddr[7:0] register until it begins to increment. the speed at which this register will increment depends on the spreading factor, the error correction code and the modulation bandwidth. (note that this interrupt is still generated in implicit mode). ? as soon as regfiforxbyteaddr[7:0] >= start address + 4, the first 4 bytes (address) are stored in the fifo data buffer. these can be read and tested to see if the packet is destined for the radio and either remaining in rx mode to receive the packet or returning to sleep mode if not. receiver timeout operation in either single or continuous lora tm ? reception modes, a receiver timeout functionality is available that permits the receiver to listen for a predetermined period of time before generating an interrupt signal to indicate that no valid packets have been received. the timer is absolute and commences as soon as the radio is placed in either single or continuous receive mode. the interrupt itself, rxtimeout , can be found in the interrupt register regirqflags . in rx single mode, the device will return to standby mode as soon as the interrupt occurs and the interrupt needs to be cleared before returning to rx single mode. in rx continuous mode, the interrupt will simply be raised but the device will stay in rx continuous mode. it is therefore the responsibility on the companion microcontr oller to clear the interrupt while still in rx continuous mode. the programmed timeout value is expressed as a multiple of the symbol period and is given by: timeout = lorarxtimeout ? ts
rfm92w / 93w v 3.0 page 40 ? t el: +86-755-82973805 fax: +86-755-82973550 e-mail: sales@hoper f .com http://ww w .hoper f .com channel activity detection the use of a spread spectrum modulation technique presents challenges in determining whether the channel is already in use by a signal that may be below the noise floor of the receiver. the use of the rssi in this situation would clearly be impracticable. to this end the channel activity detector is used to detect the presence of other lora tm ? signals. figure 11 shows the channel activity detection (cad) process: figure 11. lora tm ? cad flow
rfm92w / 93w v 3.0 page 41 ? t el: +86-755-82973805 fax: +86-755-82973550 e-mail: sales@hoper f .com http://ww w .hoper f .com principle of operation the channel activity detection mode is designed to detect a lora preamble on the radio channel with the best possible power efficiency. once in cad mode, the rfm92w/93w will perform a very quick scan of the band to detect a lora tm ? packet preamble. during a cad the following operations take place: ? the pll locks ? the radio receiver captures lora tm ? preamble symbol of data from the channel. the radio current consumption during that phase is approximately 10 ma. ? the radio receiver and the pll turn off and the modem digital processing starts. ? the modem searches for a correlation between the radio captured samples and the ideal preamble waveform. this correlation process takes a little bit less than a symbol pe riod to perform. the radio current consumption during that phase is greatly reduced. ? once the calculation is finished the modem generates the caddone interrupt. if the correlation was successful, the caddetected is generated simultaneously. ? the chip goes back to stand-by mode. ? if a preamble was detected, clear the interrupt, then initiate the reception by putting the radio in rx single mode or rx continuous mode. the time taken for the channel activity detection is dependent upon the lora tm ?? modulation settings used. for a given configuration the typical cad detection time is shown in the graph below, expressed as a multiple of the lora tm ? symbol period. of this period the radio is in receiver mode for (2 sf + 32) / bw seconds. for the remainder of the cad cycle the radio is in a reduced consumption state. figure 12. channel activity detection (cad) time as a function of spreading factor .
rfm92w / 93w v 3.0 page 42 ? t el: +86-755-82973805 fax: +86-755-82973550 e-mail: sales@hoper f .com http://ww w .hoper f .com to illustrate this process and the respective consumption in each mode, the cad process follows the sequence of events outlined below: figure 13. consumption profile of the lora cad process the receiver is then in full receiver mode for just over half of the activity detection, followed by a reduced consumption processing phase where the consumption varies with the lora bandwidth as shown in the table below. table 16 lora cad consumption figures bandwidth (khz) full rx, iddr_l (ma) processing, iddc_l (ma) 125 10.8 5.6 250 11.6 6.5 500 13 8 4.1.5.1. digital io pin mapping six of rfm92w/93w?s general purpose io pins are available used in lora tm ?? mode. their mapping is shown below and depends upon the configuration of registers regdiomapping1 and regdiomapping2. table 17 dio mapping lora tm ? mode operating mode diox mapping dio5 dio4 dio3 dio2 dio1 dio0 all 00 modeready caddetected caddone fhsschangechannel rxtimeout rxdone 01 clkout plllock validheade r fhsschangechannel fhsschangechannel txdone 10 clkout plllock payloadcrce r ror fhsschangechannel caddetected caddone 11 - - - - - -
rfm92w / 93w v 3.0 page 43 ? t el: +86-755-82973805 fax: +86-755-82973550 e-mail: sales@hoper f .com http://ww w .hoper f .com 4.2. fsk/ook modem 4.2.1. bit rate setting the bit rate setting is referenced to the crystal oscillator and provides a precise means of setting the bit rate (or equivalen tly chip) rate of the radio. in continuous transmit mode (section 3.2.2) the data stream to be transmitted can be input directly to the modulator via pin 9 (dio2/data) asynchronously, unless gaussian filtering is used, in which case the dclk signal on pin 10 (dio1/dclk) is used to clock-in the data stream. see section 4.2.2.3 for details of the gaussian filter. in packet mode or in continuous mode with gaussian filtering enabled, the bit rate (br) is controlled by bits bitrate in regbitratemsb and regbitratelsb bi tr ate = --------------------------- f ---- x ---- o ----- s --- c ------------------------------ bi tr ate (15,0) + ----- i -- t -- r -- a ---- t -- e --- f ---- r -- a ---- c - 16 note: bitratefrac bits have no effect (i.e may be considered equal to 0) in ook modulation mode. the quantity bitratefrac is hence designed to allow very high precision (max. 250 ppm programing resolution) for any bitrate in the programmable range. table 18 below shows a range of standard bitrates and the accuracy to within which they may be attained. table 18 bit rate examples type bitrate (15:8) bitrate (7:0) (g)fsk (g)msk ook actual br (b/s) classical modem baud rates (multiples of 1.2 kbps) 0x68 0x2b 1.2 kbps 1.2 kbps 1200.015 0x34 0x15 2.4 kbps 2.4 kbps 2400.060 0x1a 0x0b 4.8 kbps 4.8 kbps 4799.760 0x0d 0x05 9.6 kbps 9.6 kbps 9600.960 0x06 0x83 19.2 kbps 19.2 kbps 19196.16 0x03 0x41 38.4 kbps 38415.36 0x01 0xa1 76.8 kbps 76738.60 0x00 0xd0 153.6 kbps 153846.1 classical modem baud rates (multiples of 0.9 kbps) 0x02 0x2c 57.6 kbps 57553.95 0x01 0x16 115.2 kbps 115107.9
rfm92w / 93w v 3.0 page 44 ? t el: +86-755-82973805 fax: +86-755-82973550 e-mail: sales@hoper f .com http://ww w .hoper f .com type bitrate (15:8) bitrate (7:0) (g)fsk (g)msk ook actual br (b/s) round bit rates (multiples of 12.5, 25 and 50 kbps) 0x0a 0x00 12.5 kbps 12.5 kbps 12500.00 0x05 0x00 25 kbps 25 kbps 25000.00 0x80 0x00 50 kbps 50000.00 0x01 0x40 100 kbps 100000.0 0x00 0xd5 150 kbps 150234.7 0x00 0xa0 200 kbps 200000.0 0x00 0x80 250 kbps 250000.0 0x00 0x6b 300 kbps 299065.4 watch xtal frequency 0x03 0xd1 32.768 kbps 32.768 kbps 32753.32 4.2.2. fsk/ook transmission 4.2.2.1. fsk modulation fsk modulation is performed inside the pll bandwidth by changin g the fractional divider ratio in the feedback loop of the pll. the high resolution of the sigma-delta modulator allo ws for very narrow frequency deviation. the frequency deviation f dev is given by: f dev = f step fdev (13,0) to ensure correct modulation the following limit applies: f de v + ----- r -- ( 250 ) khz 2 note no constraint applies to the modulation index of the transmitter, but the frequency deviation must be set between 600 hz and 200 khz. 4.2.2.2. ook modulation ook modulation is applied by switching on and off the power amplifier. digital control and ramping are available to improve the transient power response of the ook transmitter. 4.2.2.3. modulation shaping modulation shaping can be applied in both ook and fsk modulation modes to improve the narrowband response of the transmitter. both shaping features are controlled with paramp bits in regparamp . ? in fsk mode, a gaussian filter with bt = 0.5 or 1 can be used to filter the modulation stream, at the input of the sigma- delta modulator. if the gaussian filter is enabled when the rfm92w/93w is in continuous mode, dclk signal on pin 10 (dio1/dclk) will trigger an interrupt on the uc each time a new bit has to be transmitted. please refer to section 5.4.2 for details. ? when ook modulation is used the pa bias voltages are ramped up and down smoothly when the pa is turned on and off to reduce spectral splatter.
rfm92w / 93w v 3.0 page 45 ? t el: +86-755-82973805 fax: +86-755-82973550 e-mail: sales@hoper f .com http://ww w .hoper f .com = d e v 10 note the transmitter must be restarted if the modulationshapin g setting is changed in order to recalibrate the built-in filter . 4.2.3. fsk/ook reception 4.2.3.1. fsk demodulator the fsk demodulator of the rfm92w/93w is designed to demodulate fsk, gfsk, msk and gmsk modulated signals. it is most efficient when the modulation index ( ) of the signal is greater than 0.5 and below 10: 2 f ---------------------- 0.5 br the output of the fsk demodulator can be fed to the bit synchronizer to provide the companion processor with a synchronous data stream in continuous mode. 4.2.3.2. ook demodulator the ook demodulator performs a comparison of the rssi output and a threshold value. three different threshold modes are available, configured through bits ookthreshtype in regookpeak . the recommended mode of operation is the ?peak? threshold mode, illustrated in figure 14: rssi [dbm] ??peak -6db?? threshold ??floor?? threshold defined by ookfixedthresh noise floor of receiver time zoom decay in db as defined in ookpeakthreshstep fixed 6db difference period as defined in ookpeakthreshdec figure 14. ook peak demodulator description in peak threshold mode the comparison threshold level is the peak value of the rssi reduced by 6 db. in the absence of an input signal, or during the reception of a logical ?0?, the acquired peak value is decremented by one ookpeakthreshstep every ookpeakthreshdec period. when the rssi output is null for a long time (for instance after a long string of ?0? received or if no transmitter is present) the peak threshold level will continue falling until it reaches the ?floor threshold? programmed in ookfixedthresh .
rfm92w / 93w v 3.0 page 46 ? t el: +86-755-82973805 fax: +86-755-82973550 e-mail: sales@hoper f .com http://ww w .hoper f .com the default settings of the ook demodulator lead to the perfor mance stated in the electrical specification. however, in applications in which sudden received signal power reduction is possible, the three parameters should be optimized accordingly. optimizing the floor threshold ookfixedthresh determines the sensitivity of the ook receiver, as it sets the comparison threshold for weak input signals (i.e. those close to the noise floor). significant sensitivit y improvements can be generated if configured correctly. note that the noise floor of the receiver at the demodulator input depends on: ? the noise figure of the receiver. ? the gain of the receive chain from antenna to base band. ? the matching - including saw filter if any. ? the bandwidth of the channel filters. it is therefore important to note that the setting of ookfixedthresh will be application dependan t. the following procedure is recommended to optimize ookfixedthresh . set rfm92/3 in ook rx mode adjust bit rate, channel filter bw default ookfixedthresh setting no input signal continuous mode monitor dio2/data pin increment ookfixedthresh glitch activity on data ? optimization complete figure 15. floor threshold optimization the new floor threshold value found during this test should be used for ook reception with those receiver settings. optimizing ook demodulator for fast fading signals a sudden drop in signal strength can cause the bit error rate to increase. for applications where the expected signal drop can be estimated, the following ook demodulator parameters ookpeakthreshstep and ookpeakthreshdec can be optimized as described below for a given number of threshold decrements per bit. refer to regookpeak to access those settings.
rfm92w / 93w v 3.0 page 47 ? t el: +86-755-82973805 fax: +86-755-82973550 e-mail: sales@hoper f .com http://ww w .hoper f .com alternative ook demodulator threshold modes in addition to the peak ook threshold mode, the user can alternatively select two other types of threshold detectors: ? fixed threshold: the value is selected through ookfixedthresh ? average threshold: data supplied by the rssi block is averaged (this operation mode should only be used with dc- free encoded data). 4.2.3.3. bit synchronizer the bit synchronizer provides a clean and synchronized digi tal output based upon timing recovery information gleaned from the received data edge transitions. its output is made available on pin dio1/dclk in continuous mode and can be disabled through register settings. however, for optimum receiver performance, especially in continuous receive mode, its use is strongly advised. the bit synchronizer is automatically activated in packet mode. its bit rate is controlled by bitratemsb and bitratelsb in regbitrate. raw demodulator output (fsk or ook) bitsync output to pin data and dclk in continuous mode data dclk figure 16. bit synchronizer description to ensure correct operation of the bit synchronize r the following conditions have to be satisfied: ? a preamble (0x55 or 0xaa) of at least 12 bits is required for synchronization, the longer the synchronization phase is the better the ensuing packet detection rate will be. ? the subsequent payload bit stream must have at least one edge transition (either rising or falling) every 16 bits during data transmission. ? the absolute error between transmitted and received bit rate must not exceed 6.5%.
rfm92w / 93w v 3.0 page 48 ? t el: +86-755-82973805 fax: +86-755-82973550 e-mail: sales@hoper f .com http://ww w .hoper f .com 4.2.3.4. frequency error indicator this frequency error indicator measures the frequency error between the programmed rf centre frequency and the carrier frequency of the modulated input signal to the receiver. when the fei is performed the frequency error is measured and the signed result is loaded in feivalue in regfei in 2?s complement format. the time required for an fei evaluation is 4 bit periods. to ensure correct operation of the fei: ? the measurement must be launched during the reception of preamble. ? the sum of the frequency offset and the 20 db signal bandwidth must be lower than the base band filter bandwidth. i.e. the whole modulated spectrum must be received. the 20 db bandwidth of the signal can be evaluated as follows (double-side bandwidth): = the frequency error, in hz, can be calculated with the following formula: fei = f step fe iv alue the fei is enabled automatically upon the transition to receive mode and automatically updated every 4 bits. 4.2.3.5. afc the afc is based on the fei measurement therefore the same input signal and receiver setting conditions apply. when the afc procedure is performed the afcvalue is directly subtracted from the register that defines the frequency of operation of the chip, f rf . the afc is executed each time the receiver is enabled, if afcautoon = 1. when the afc is enabled ( afcautoon = 1) the user has the option to: ? clear the former afc correction value if afcautoclearon = 1. allowing the next frequency correction to be performed from the initial centre frequency. ? start the afc evaluation from the previously corrected frequency. this may be useful in systems in which the centre frequency experiences cumulative drift - such as the ageing of a crystal reference. the rfm92w/93w offers an alternate receiver bandwidth setting during the afc phase allowing the accommodation of larger frequency errors. the setting regafcbw sets the receive bandwidth during the afc process. in a typical receiver application, once the afc is performed, the radio will revert to the receiver communication or channel bandwidth ( regrxbw ) for the ensuing communication phase. note that the fei measurement is valid only during the reception of preamble. the provision of the preambledetect flag can hence be used to detect this condition and allow a reliable afc or fei operation to be triggered. this process can be performed automatically by using the appropriate options in startdemodonpreamble found in the regrxconfig register. a detailed description of the receiver setup to enable the afc is provided in section 4.2.7.
rfm92w / 93w v 3.0 page 49 ? t el: +86-755-82973805 fax: +86-755-82973550 e-mail: sales@hoper f .com http://ww w .hoper f .com preambledetectorsize # of bytes 00 1 01 2 (recommended) 10 3 11 reserved 4.2.3.6. preamble detector the preamble detector indicates the reception of a carrier modulated with a 0101...sequence. it is insensitive to the frequency offset, as long as the receiver bandwidth is large enough. the size of detection can be programmed from 1 to 3 bytes with preambledetectorsize in regpreambledetect as defined in the next table. table 19 preamble detector settings for normal operation, preambledetecttol should be set to be set to 10 (0x0a) with a qualifying preamble size of 2 bytes. the preambledetect interrupt (either in regirqflags1 or mapped to a specific dio) then goes high every time a valid preamble is detected assuming preambledetectoron =1. the preamble detector can also be used as a gate to en sure that afc and agc are performed on valid preamble. see section 4.2.7. for details. 4.2.3.7. image rejection mixer the rfm92w/93w employs an image rejection mixer (irm) which, uncalibrated, gives 35 db image rejection. the low phase noise pll is used to perform calibration of the receiver chain. which increases the typical image rejection to 48 db. this process is fully automated in fsk/ook mode and radio power-up. 4.2.3.8. image and rssi calibration an automatic calibration process is used to calibrate the phase and gain of both i and q receive paths. this calibration allows enhanced image frequency rejection and improves the rssi precision. this calibration process is launched under the following circumstances: ? automatically at power on reset or after a manual reset of the chip (refer to section 7.2). for applications where the temperature remains stable, or if the image rejection is no t a major concern, this single calibration will suffice. ? automatically when a pre-defined temperature change is observed. ? upon user request, by setting bit imagecalstart in regimagecal , when the device is in standby mode. note that in lora tm ? mode the calibration command is inaccessible. to perform the calibration the radio must be returned temporarily to fsk/ook mode. a selectable temperature change, set with tempthreshold (5, 10, 15 or 20c), is detected and reported in tempchange if the temperature monitoring is turned on with tempmonitoroff = 0 . this interrupt flag can be used by the application to launch a new image calibration at a convenient time if autoimagecalon =0, or immediately when this temperature variation is detected, if autoimagecalon =1.
rfm92w / 93w v 3.0 page 50 ? t el: +86-755-82973805 fax: +86-755-82973550 e-mail: sales@hoper f .com http://ww w .hoper f .com the calibration process takes approximately 10 ms. 4.2.3.9. timeout function the rfm92w/93w includes a timeout function, which allows the automation of a duty-cycle d recceive oprtation where the radio periodically wakes from sleep mode into receiver mode. ? timeout interrupt is generated timeoutrxrssi x 16 x tbit after switching to rx mode if the rssi flag does not raise within this time frame ( rssivalue > rssithreshold ). ? timeout interrupt is generated timeoutrxpreamble x 16 x tbit after switching to rx mode if the preambledetect flag does not raise within this time frame. ? timeout interrupt is generated timeoutsignalsync x 16 x tbit after switching to rx mode if the syncaddress flag does not raise within this time frame. this timeout interrupt can be used to warn the companion processor to shut down the receiver and return to a lower power mode. to become active, these timeouts must also be enabled by setting the correct rxtrigger parameters in regrxconfig: table 20 rxtrigger settings to enable timeout interrupts r ecei v er triggering event r x t rigger (2:0) t im e o u ton rssi t i meout on preamble t im e o u t on syncaddress none 000 off off active r s si interrupt 001 active off preambledetect 110 off active rssi interrupt & preambledetect 111 active active 4.2.4. operating modes in fsk/ook mode 4.2.5. general overview the rfm92w/93w has several working modes, manually programmed in regopmode . fully automated mode selection, packet transmission and reception is also possible using the top level sequencer described in section 4.2.9. table 21 basic transceiver modes mode selected mode symbol enabled blocks 000 sleep mode sleep none 001 standby mode stdby top regulator and crystal oscillator 010 frequency synthesiser to tx frequency fstx frequency synthesizer at tx frequency (frf) 011 transmit mode tx frequency synthesizer and transmitter 100 frequency synthesiser to rx frequency fsrx frequency synthesizer at frequency for reception (frf-if) 101 receive mode rx frequency synthesizer and receiver when switching from a mode to another the sub-blocks are woken up according to a pre-defined optimized sequence.
rfm92w / 93w v 3.0 page 51 ? t el: +86-755-82973805 fax: +86-755-82973550 e-mail: sales@hoper f .com http://ww w .hoper f .com 4.2.6. startup times the startup time of the transmitter or the receiver is dependent upon which mode the transceiver was in at the beginning. for a complete description, figure 17 below shows a complete startup process, from the lower power mode ?sleep?. current drain iddr (rx) or iddt (tx) iddfs iddsl iddst timeline 0 ts_osc ts_osc +ts_fs ts_osc +ts_fs +ts_tr ts_osc +ts_fs +ts_re fstx transmit sleep mode stdby mode fsrx receive figure 17. startup process ts_osc is the startup time of the crystal oscillator which depe nds on the electrical characteristics of the crystal. ts_fs is the startup time of the pll including systematic calibration of the vco. typical values of ts_osc and ts_fs are given in section 2.3. 4.2.6.1. transmitter startup time the transmitter startup time, ts_tr, is calculated as follows in fsk mode: ts _ tr = 5 s + 1.25 paramp + 1 tbit 2 , where paramp is the ramp-up time programmed in regparamp and tbit is the bit time. in ook mode, this equation can be simplified to the following: ts _ tr = 5 s + 1 tbit 2 4.2.6.2. receiver startup time the receiver startup time, ts_re, only depends upon the receiv er bandwidth effective at the time of startup. when afc is enabled ( afcautoon =1) the afcbw should be used instead of rxbw to extract the receiver startup time:
rfm92w / 93w v 3.0 page 52 ? t el: +86-755-82973805 fax: +86-755-82973550 e-mail: sales@hoper f .com http://ww w .hoper f .com table 22 receiver startup time summary rxbw i f af c au toon=0 rxbwafc if afcautoon=1 ts_re (+/-5%) 2.6 khz 2.33 ms 3.1 khz 1.94 ms 3.9 khz 1.56 ms 5.2 khz 1.18 ms 6.3 khz 984 us 7.8 khz 791 us 10.4 khz 601 us 12.5 khz 504 us 15.6 khz 407 us 20.8 khz 313 us 25.0 khz 264 us 31.3 khz 215 us 41.7 khz 169 us 50.0 khz 144 us 62.5 khz 119 us 83.3 khz 97 us 100.0 khz 84 us 125.0 khz 71 us 166.7 khz 85 us 200.0 khz 74 us 250.0 khz 63 us ts_re or later after setting the device in receive mode, an y incoming packet will be detected and demodulated by the transceiver. 4.2.6.3. time to rssi evaluation the first rssi sample will be available ts_rssi after the receiver is ready: equivalently ts_re + ts_rssi after the receive mode instru ction was issued. timeline 0 ts_re ts_re +ts_rssi fsrx rx rssi irq rssi sample ready figure 18. time to rssi sample ts_rssi depends on the receiver bandwidth as well as the rssismoothing option that was selected. the formula used to calculate ts_rssi is provided in section 2.5.4.
rfm92w / 93w v 3.0 page 53 ? t el: +86-755-82973805 fax: +86-755-82973550 e-mail: sales@hoper f .com http://ww w .hoper f .com t x mode rx mode 4.2.6.4. tx to rx turnaround time timeline 0 ts_hop +ts_re 1. set new frf (*) 2. set rx mode rx mode (*) optional figure 19. tx to rx turnaround note the spi instruction times are omitted, as they can generally be very small as compared to other timings (up to 10 mhz spi clock). 4.2.6.5. rx to tx timeline 0 ts_hop +ts_tr 1. set new frf (*) 2. set tx mode tx mode (*) optional figure 20. rx to tx turnaround
rfm92w / 93w v 3.0 page 54 ? t el: +86-755-82973805 fax: +86-755-82973550 e-mail: sales@hoper f .com http://ww w .hoper f .com 4.2.6.6. receiver hopping, rx to rx two methods are possible: first method timeline 0 ts_hop +ts_re rx m ode, channel a 1. set new fr f 2. set restartrxwithplllock rx mode, channel b second m ethod timeline 0 ~ts_hop rx m ode, channel a 1. set fasthopon =1 2. set new frf (*) 3. wait for ts_hop rx mode, channel b (*) regfrflsb must be written to trigger a frequency change figure 21. receiver hopping the second method is quicker and should be used if a very quick rf sniffing mechanism is to be implemented. 4.2.6.7. tx to tx 0 ~ paramp +ts_hop ~paramp +ts_hop +ts_tr timeline tx mode , channel a 1. set new frf (*) 2. set fstx mode fstx set tx mode tx mode, channel b figure 22. transmitter hopping 4.2.7. receiver startup options the rfm92w/93w receiver can automatically control the gain of the receive chain (agc) and adjust the receiver lo frequency (afc). those processes are carried out on a packet-by-packet basis. they occur: ? when the receiver is turned on. ? when the receiver is restarted upon user request, through the use of trigger bits restartrxwithoutplllock or restartrxwithplllock in regrxconfig. ? when the receiver is automatically restarted after the reception of a valid packet or after a packet collision.
rfm92w / 93w v 3.0 page 55 ? t el: +86-755-82973805 fax: +86-755-82973550 e-mail: sales@hoper f .com http://ww w .hoper f .com automatic restart capabilities are detailed in section 4.2.8. the receiver startup options available in rfm92w/93w are described in table 23. table 23 receiver startup options t r i gger i ng event realized function a gcautoon a fcautoon r x t rigger (2:0) none none 0 0 000 rssi interrupt agc 1 0 001 agc & afc 1 1 001 preambledetect agc 1 0 110 agc & afc 1 1 110 r s si interrupt & preambledetect agc 1 0 111 agc & afc 1 1 111 when agcautoon =0, the lna gain is manually selected by choosing lnagain bits in reglna. 4.2.8. receiver restart methods the options for restart of the receiver are covered below. this is typically of use to prepare for the reception of a new signa l whose strength or carrier frequency is different from the preceding packet to allow the agc or afc to be re-evaluated. 4.2.8.1. restart upon user request in receive mode the user can request a receiver restart - this can be useful in conjunction with the use of a timeout interrupt following a period of inactivity in the channel of interest. two options are available: ? no change in the local oscillator upon restart: the afc is disabled, and the frf register has not been changed through spi before the restart instruction: set bit restartrxwithoutplllock in regrxconfig to 1. ? local oscillator change upon restart: if afc is enabled ( afcautoon =1), and/or the frf register had been changed during the last rx period: set bit restartrxwithplllock in regrxconfig to 1. note modeready must be at logic level 1 for a new restartrx command to be taken into account. 4.2.8.2. automatic restart after valid packet reception the bits autorestartrxmode in regsyncconfig control the automatic restart feature of the rfm92w/93w receiver, when a valid packet has been received: ? if autorestartrxmode = 00 , the function is off, and the user should manually restart the receiver upon valid packet reception (see section 4.2.8.1 ). ? if autorestartrxmode = 01 , after the user has emptied the fifo following a payloadready interrupt, the receiver will automatically restart itself after a delay of interpacketrxdelay , allowing for the distant transmitter to ramp down, hence avoiding a false rssi detection on the ?tail? of the previous packet. ? if autorestartrxmode = 10 should be used if the next reception is expected on a new frequency, i.e. frf is changed after the reception of the previous packet. an additional delay is systematically added, in order for the pll to lock at a new frequency.
rfm92w / 93w v 3.0 page 56 ? t el: +86-755-82973805 fax: +86-755-82973550 e-mail: sales@hoper f .com http://ww w .hoper f .com 4.2.8.3. automatic restart when packet collision is detected in receive mode the rfm92w/93w is able to detect packet collision and restart th e receiver. collisions are detected by a sudden rise in received signal strength, detected by the rssi. this functionality can be useful in network configurations where many asynchronous slaves attempt periodic communication with a single a master node. the collision detector is enabled by setting bit restartrxoncollision to 1. the decision to restart the receiver is based on the detection of rssi change. the sensitivity of the system can be adjusted in 1 db steps by using register rssicollisionthreshold in regrxconfig . 4.2.9. top level sequencer depending on the application it may be desirable to be able to change the mode of the circuit according to a predefined sequence without access to the serial interface. in order to define different sequences or scenarios a user-programmable state machine called the top level sequencer (herein reffered to as the sequencer) can automatically control the chip modes. note that this functionality is only available in fsk/ook mode. the sequencer is activated by setting the sequencerstart bit in regseqconfig1 to 1 in sleep or standby mode (called initial mode). it is also possible to force the sequencer off by setting the stop bit in regseqconfig1 to 1 at any time. note sequencerstart and stop bit must never be set at the same time. 4.2.9.1. sequencer states as shown in the table below, with the aid of a pair of interrupt timers (t1 and t2), the sequencer can take control of the chip operation in all modes. table 24 sequencer states sequencer state description sequenceroff state the sequencer is not activated. sending a sequencerstart command will launch it. when coming from lowpowerselection state, the sequencer will be off, whilst the chip will return to its initial mode (e ither sleep or standby mode). idle state the chip is in low-power mode, either standby or sleep , as defined by idlemode in regseqconfig1 . the sequencer waits only for the t1 interrupt. transmit state the transmitter in on. receive state the receiver in on. packetreceived the receiver is on and a packet has been received. it is stored in the fifo. lowpowerselection selects low power state ( sequenceroff or idle state)
rfm92w / 93w v 3.0 page 57 ? t el: +86-755-82973805 fax: +86-755-82973550 e-mail: sales@hoper f .com http://ww w .hoper f .com rxtimeout defines the action to be taken on a rxtimeout interrupt. rxtimeout interrupt can be a timeoutrxrssi , timeoutrxpreamble or timeoutsignalsync interrupt. 4.2.9.2. sequencer transitions the transitions between sequencer states are listed in the forthcoming table. table 25 sequencer transition options variable transition idlemode selects the chip mode during idle state: 0: standby mode 1: sleep mode fromstart controls the sequencer transition when the sequencerstart bit is set to 1 in sleep or standby mode: 00: to lowpowerselection 01: to receive state 10: to transmit state 11: to transmit state on a fifothreshold interrupt lowpowerselection selects sequencer lowpower state after a to lowpowerselection transition 0: sequenceroff state with chip on initial mode 1: idle state with chip on standby or sleep mode depending on idlemode note: initial mode is the chip lowpower mode at sequencer start. fromidle controls the sequencer transition from the idle state on a t1 interrupt: 0: to transmit state 1: to receive state fromtransmit controls the sequencer transition from the transmit state: 0: to lowpowerselection on a packetsent interrupt 1: to receive state on a packetsent interrupt fromreceive controls the sequencer transition from the receive state: 000 and 111: unused 001: to packetreceived state on a payloadready interrupt 010: to lowpowerselection on a payloadready interrupt 011: to packetreceived state on a crcok interrupt. if crc is wrong (corrupted packet, with crc on but crcautoclearon is off), the payloadready interrupt will drive the sequencer to rxtimeout state. 100: to sequenceroff state on a rssi interrupt 101: to sequenceroff state on a syncaddress interrupt 110: to sequenceroff state on a preambledetect interrupt irrespective of this setting, transition to lowpowerselection on a t2 interrupt fromrxtimeout controls the state-machine transition from the receive state on a rxtimeout interrupt (and on payloadready if fromreceive = 011): 00: to receive state via receiverestart 01: to transmit state 10: to lowpowerselection 11: to sequenceroff state note: rxtimeout interrupt is a timeoutrxrssi , timeoutrxpreamble or timeoutsignalsync interrupt.
rfm92w / 93w v 3.0 page 58 ? t el: +86-755-82973805 fax: +86-755-82973550 e-mail: sales@hoper f .com http://ww w .hoper f .com frompacketreceived controls the state-machine transition from the packetreceived state: 000: to sequenceroff state 001: to transmit on a fifoempty interrupt 010: to lowpowerselection 011: to receive via fs mode, if frequency was changed 100: to receive state (no frequency change) 4.2.9.3. timers two timers (timer1 and timer2) are also available in order to define periodic sequences. these timers are used to generate interrupts, which can trigger transitions of the sequencer. t1 interrupt is generated (timer1resolution * timer1coefficient) after t2 interrupt or sequencerstart . command. t2 interrupt is generated (timer2resolution * timer2coefficient) after t1 interrupt . the timer mechanism is summarized on the following diagram. sequencer start t2 interrupt timer2 timer1 t1 interrupt figure 23. timer1 and timer2 mechanism note the timer sequence is completed independently of the act ual sequencer state. thus, both timers need to be on to achieve periodic cycling.
rfm92w / 93w v 3.0 page 59 ? t el: +86-755-82973805 fax: +86-755-82973550 e-mail: sales@hoper f .com http://ww w .hoper f .com table 26 sequencer timer settings variable description timer1resolution resolution of timer1 00: disabled 01: 64 us 10: 4.1 ms 11: 262 ms timer2resolution resolution of timer2 00: disabled 01: 64 us 10: 4.1 ms 11: 262 ms timer1coefficient multiplying coefficient for timer1 timer2coefficient multiplying coefficient for timer2
rfm92w / 93w v 3.0 page 60 ? t el: +86-755-82973805 fax: +86-755-82973550 e-mail: sales@hoper f .com http://ww w .hoper f .com 4.2.9.4. sequencer state machine the following graphs summarize every possible transition between each sequen cer state. the sequencer states are highlighted in grey. the transitions are represented by arrows. the condition activating them is described over the transition arrow. for better readability, the start tran sitions are separated from the rest of the graph. transitory states are highlighted in light grey, and exit states are represented in red. it is also possible to force the sequencer off by setting the stop bit in regseqconfig1 to 1 at any time. seq ? uen ? cer: ? start ? tran ? si ti on ? s ? ? sequencer off & initial mode = sleep or standby on sequencerstart bit rising edge if fromstart = 00 start on fifothreshold if fromstart = 11 if fromstart = 01 if fromstart = 10 lowpower selection receive transmit seq ? uen ? cer: ? state ? mach ? ine ? ? ? ? if lowpowerselection = 1 standby if idlemode = 0 sleep if idlemode = 1 lowpower selection if lowpowerselection = 0 ( mode te initial mode ) sequencer off idle if frompacketreceived = 000 if frompacketreceived = 010 on t1 if fromidle = 0 on t1 if fromidle = 1 packet receiv ed on payloadready if fromreceive = 010 if frompacketreceived = 100 via fs mode if frompacketreceived = 011 on t2 on payloadready if fromreceive = 001 on crcok if fromreceive = 011 on payloadready if fromreceive = 011 (crc failed and crcautoclearon =0) on rxtimeout receive on rssi if fromreceive = 100 on syncadress if fromreceive = 101 on preamble if fromreceive = 110 on packetsent if fromtransmit = 1 on packetsent if fromrxtimeout = 10 via receiverestart if fromrxtimeout = 00 transmit if fromtransmit = 0 rxtimeout if fromrxtimeout = 11 if fromrxtimeout = 01 sequencer off figure 24. sequencer state machine
rfm92w / 93w v 3.0 page 61 ? t el: +86-755-82973805 fax: +86-755-82973550 e-mail: sales@hoper f .com http://ww w .hoper f .com 4.2.10. data processing in fsk/ook mode 4.2.10.1. block diagram figure below illustrates the rfm92w/93w data processing ci rcuit. its role is to interface the data to/from the modulator/ demodulator and the uc access points (spi and dio pins). it also controls all the configuration registers. the circuit contains several control blocks which are described in the following paragraphs. tx/rx control dio0 dio1 dio2 dio3 dio4 dio5 data rx sync recog. tx packet handler fifo (+sr) spi nss sck mosi miso potential datapaths (data operation mode dependant) figure 25. rfm92w/93w data processing conceptual view the rfm92w/93w implements several data operation modes each with their own data path through the data processing section. depending on the data operation mode selected some control blocks are active whilst others remain disabled. 4.2.10.2. data operation modes the rfm92w/93w has two different data operation modes selectable by the user: ? continuous mode: each bit transmitted or received is accessed in real time at the dio2/data pin. this mode may be used if adequate external signal processing is available. ? packet mode (recommended): user only provides/retrieves payload bytes to/from the fifo. the packet is automatically built with preamble, sync word, and optional crc and dc-free encoding schemes the reverse operation is performed in reception. the uc processing overhead is hence significantly reduced compared to continuous mode. depending on the optional features activated (crc, etc) the maximum payload length is limited to 255, 2047 bytes or unlimited. each of these data operation modes is fully described in the following sections.
rfm92w / 93w v 3.0 page 62 ? t el: +86-755-82973805 fax: +86-755-82973550 e-mail: sales@hoper f .com http://ww w .hoper f .com 4.2.11. fifo overview and shift register (sr) in packet mode of operation both data to be transmitted and that has been received are stored in a configurable fifo (first in first out). it is accessed via the spi interface an d provides several interrupts for transfer management. the fifo is 1 byte wide hence it only performs byte (parallel) operations, whereas the demodulator functions serially. a shift register is therefore employed to interface the two device s. in transmit mode it takes bytes from the fifo and outputs them serially (msb first) at the programmed bit rate to the modulator. similarly, in rx the shift register gets bit by bit data from the demodulator and writes them byte by byte to the fifo. this is illustrated in figure below. byte1 byte0 fifo data tx/rx 1 8 sr (8bits) msb lsb figure 26. fifo and shift register (sr) note when switching to sleep mode, the fifo can only be used once the modeready flag is set (immediately from all modes except from tx) the fifo size is fixed to 64 bytes. interrupt sources and flags ? fifoempty : fifoempty interrupt source is high when byte 0, i.e. whole fifo, is empty. otherwise it is low. note that when retrieving data from the fifo, fifoempty is updated on nss fa lling edge, i.e. when fifoempty is updated to low state the currently started read operation must be completed. in other words, fifoempty state must be checked after each read operation for a decision on the next one ( fifoempty = 0: more byte(s) to read; fifoempty = 1: no more byte to read). ? fifofull : fifofull interrupt source is high when the last fifo byte, i. e. the whole fifo, is full. otherwise it is low. ? fifooverrunflag : fifooverrunflag is set when a new byte is written by the user (in tx or standby modes) or the sr (in rx mode) while the fifo is already full. data is lost and the flag should be cleared by writing a 1, note that the fifo will also be cleared. ? packetsent : packetsent interrupt source goes high when the sr's last bit has been sent. ? fifolevel : threshold can be programmed by fifothreshold in regfifothresh . its behavior is illustrated in figure below.
rfm92w / 93w v 3.0 page 63 ? t el: +86-755-82973805 fax: +86-755-82973550 e-mail: sales@hoper f .com http://ww w .hoper f .com fifolevel 1 0 b b+1 # of bytes in fifo figure 27. fifolevel irq source behavior notes - fifolevel interrupt is updated only after a read or write operation on the fifo. thus the interrupt cannot be dynamically updated by only changing the fifothreshold parameter - fifolevel interrupt is valid as long as fifofull does no t occur. an empty fifo will restore its normal operation fifo clearing table below summarizes the status of the fifo when switching between different modes table 27 status of fifo when switching between different modes of the chip from to fifo status comments stdby sleep not cleared sleep stdby not cleared stdby/sleep tx not cleared t o allow the user to write the fifo in stdby/sleep before tx stdb y /sleep rx cleared rx tx cleared rx stdb y /sleep not cleared t o allow the user to read fifo in stdby/sleep mode after rx tx a ny cleared 4.2.11.1. sync word recognition overview sync word recognition (also called pattern recognition) is activated by setting syncon in regsyncconfig . the bit synchronizer must also be activated in continuous mode (automatically done in packet mode). the block behaves like a shift register as it continuously compares the incoming data with its internally programmed sync word and sets syncaddressmatch when a match is detected. this is illustrated in figure 28 below.
rfm92w / 93w v 3.0 page 64 ? t el: +86-755-82973805 fax: +86-755-82973550 e-mail: sales@hoper f .com http://ww w .hoper f .com rx data (nrz) bit n-x = sync_value[x] bit n-1 = sync_value[1] bit n = sync_value[0] dclk syncaddressmatch figure 28. sync word recognition during the comparison of the demodulated data, the first bit received is compared with bit 7 (msb) of regsyncvalue1 and the last bit received is compared with bit 0 (lsb) of the la st byte whose address is determined by the length of the sync word. when the programmed sync word is detected the user can assume that this incoming packet is for the node and can be processed accordingly. syncaddressmatch is cleared when leaving rx or fifo is emptied. configuration ? size: sync word size can be set from 1 to 8 bytes (i.e. 8 to 64 bits) via syncsize in regsyncconfig . in packet mode this field is also used for sync word generation in tx mode. ? value: the sync word value is configured in syncvalue(63:0) . in packet mode this field is also used for sync word generation in tx mode. note syncvalue choices containing 0x00 bytes are not allowed packet handler the packet handler is the block used in packet mode. its functionality is fully described in section 4.2.14. control the control block configures and controls the full chip's behavior according to the settings programmed in the configuration registers.
rfm92w / 93w v 3.0 page 65 ? t el: +86-755-82973805 fax: +86-755-82973550 e-mail: sales@hoper f .com http://ww w .hoper f .com 4.2.12. digital io pins mapping six general purpose io pins are available on the rfm92w/93w and their configuration in continuous or packet mode is controlled through regdiomapping1 and regdiomapping2. table 28 dio mapping, continuous mode diox mapping sleep standby fsrx/tx rx tx 00 - s y nc a ddress txread y dio0 01 - rssi / preambledetect - 10 - rxready txready 11 - 00 - dclk dio1 01 - rssi / preambledetect - 10 - 11 - 00 - data dio2 01 - data 10 - data 11 - data 00 - timeout - dio3 01 - rssi / preambledetect - 10 - 11 - tempchange / lowbat tempchange / lowbat 00 - tem p chan g e / lowbat dio4 01 - plllock 10 - timeout - 11 - modeready modeready 00 clkout if rc clkout clkout dio5 01 - plllock 10 - rssi / preambledetect - 11 - modeready modeready table 29 dio mapping, packet mode diox mapping sleep standby fsrx / tx rx tx 00 - payloadready packetsent dio0 01 - crcok - 10 - 11 - tempchange / lowbat tempchange / lowbat 00 fifolevel fifolevel fifolevel dio1 01 fifoempty fifoempty fifoempty 10 fifofull fifofull fifofull 11 - 00 fifofull fifofull fifofull dio2 01 - rxready - 10 fi f ofull timeout fi f ofull 11 fi f ofull s y ncaddress fi f ofull 00 fifoempt y fifoempt y fifoempt y dio3 01 - txready 10 fifoempty fifoempty fifoempty 11 fifoempty fifoempty fifoempty 00 - tem p chan g e / lowbat tem p chan g e / lowbat dio4 01 - plllock 10 - timeout - 11 - rssi / preambledetect - 00 clkout if rc clkout clkout dio5 01 - plllock 10 - data 11 - modeready modeready
rfm92w / 93w v 3.0 page 66 ? t el: +86-755-82973805 fax: +86-755-82973550 e-mail: sales@hoper f .com http://ww w .hoper f .com 4.2.13. continuous mode 4.2.13.1. general description as illustrated in figure 29 in continuous mode the nrz data to (from) the (de)modulator is directly accessed by the uc on the bidirectional dio2/data pin. the fifo and packet handler are thus inactive. tx/rx control dio0 dio1/dclk dio2/data dio3 dio4 dio5 data rx sync recog. spi nss sck mosi miso figure 29. continuous mode conceptual view 4.2.13.2. tx processing in tx mode a synchronous data clock for an external uc is provided on dio1/dclk pin. clock timing with respect to the data is illustrated in figure 30. data is internally sampled on the rising edge of dclk so the uc can change logic state anytime outside the grayed out setup/hold zone. t_data t_data data (nrz) dclk figure 30. tx processing in continuous mode note the use of dclk is required when the modulation shaping is enabled (see section 3.4.5).
rfm92w / 93w v 3.0 page 67 ? t el: +86-755-82973805 fax: +86-755-82973550 e-mail: sales@hoper f .com http://ww w .hoper f .com 4.2.13.3. rx processing if the bit synchronizer is disabled the raw demodulator output is made directly available on data pin and no dclk signal is provided. conversely, if the bit synchronizer is enabled, synchronous cleaned data and clock are made available respectively on dio2/data and dio1/dclk pins. data is sampled on t he rising edge of dclk and updated on the falling edge as illustrated below. data (nrz) dclk figure 31. rx processing in continuous mode note in continuous mode it is always recommended to enable the bit synchronizer to clean the data signal even if the dclk signal is not used by the uc (bit synchronizer is automatically enabled in packet mode). 4.2.14. packet mode 4.2.14.1. general description in packet mode the nrz data to (from) the (de)modulator is not directly accessed by the uc but stored in the fifo and accessed via the spi interface. in addition the rfm92w/93w packet handler performs several packet oriented tasks such as preamble and sync word generation, crc calculation/check, whitening/dewhitening of data, manchester encoding/decoding, address filtering, etc. this simplifies software and reduces uc overhead by perf orming these repetitive tasks within the rf chip itself. another important feature is ability to fill and empty the fifo in sleep/stdby mode to ensure minimum power consumption when accessing payload data.
rfm92w / 93w v 3.0 page 68 ? t el: +86-755-82973805 fax: +86-755-82973550 e-mail: sales@hoper f .com http://ww w .hoper f .com control dio0 dio1 dio2 dio3 dio4 dio5 data rx tx sync recog. packet handler fifo (+sr) spi nss sck mosi miso figure 32. packet mode conceptual view note the bit synchronizer is automatically enabled in packet mode. 4.2.14.2. packet format fixed length packet format fixed length packet format is selected when bit packetformat is set to 0 and payloadlength is set to any value greater than 0. in applications where the packet length is fixed in advance, this mode of operation may be of interest to minimize rf overhead (no length byte field is required). all nodes, whet her tx only, rx only or tx/rx should be programmed with the same packet length value. the length of the payload is limited to 2047 bytes. the length programmed in payloadlength relates only to the payload which includes the message and the optional address byte. in this mode the payload must contain at least one byte i.e. address or message byte. an illustration of a fixed length packet is s hown below. it contains the following fields: ? preamble (1010...) ? sync word (network id) ? optional address byte (node id) ? message data ? optional 2-bytes crc checksum
rfm92w / 93w v 3.0 page 69 ? t el: +86-755-82973805 fax: +86-755-82973550 e-mail: sales@hoper f .com http://ww w .hoper f .com optional dc free data coding crc checksum calculation preamble 0 to 65536 bytes sync word 0 to 8 bytes address byte message up to 2047 bytes crc 2-bytes payload (min 1 byte) fields added by the packet handler in tx and processed and removed in rx optional user provided fields which are part of the payload message part of the payload figure 33. fixed length packet format variable length packet format variable length packet format is selected when bit packetformat is set to 1. this mode is useful in applications where the length of the packet is not known in advance and can vary over time. it is then necessary for the transmitter to send the length information together with each packet in order for the receiver to operate properly. in this mode the length of the payload, indicated by the length byte, is given by the first byte of the fifo and is limited to 255 bytes. note that the length byte itself is not included in its calculation. in this mode the payload must contain at least 2 bytes i.e. length + address or message byte. an illustration of a variable length packet is shown below. it contains the following fields: ? preamble (1010...) ? sync word (network id) ? length byte ? optional address byte (node id) ? message data
rfm92w / 93w v 3.0 page 70 ? t el: +86-755-82973805 fax: +86-755-82973550 e-mail: sales@hoper f .com http://ww w .hoper f .com ? optional 2-bytes crc checksum optional dc free data coding crc checksum calculation preamble 0 to 65536 byte s sync word 0 to 8 bytes length byte address byte message up to 255 bytes crc 2-bytes payload (min 2 bytes) fields added by the packet handler in tx and processed and removed in rx optional user provided fields which are part of the payload message part of the payload figure 34. variable length packet format unlimited length packet format unlimited length packet format is selected when bit packetformat is set to 0 and payloadlength is set to 0. the user can then transmit and receive pack et of arbitrary length and payloadlength register is not used in tx/rx modes for counting the length of the bytes transmitted/received. in tx the data is transmitted depending on the txstartcondition bit. on the rx side the data processing features like address filtering, manchester encoding a nd data whitening are not available if the sync pattern length is set to zero ( syncon = 0 ). the filling of the fifo in this case can be controlled by the bit fifofillcondition . the crc detection in rx is also not supported in this mode of the packet handler, however crc generation in tx is operational. the interrupts like crcok & payloadready are not available either. an unlimited length packet shown below is made up of the following fields: ? preamble (1010...). ? sync word (network id). ? optional address byte (node id). ? message data ? optional 2-bytes crc checksum (tx only) dc free data encoding pr eamb l e 0 to 65535 byt es sync w ord 0 to 8 by te s a ddress byt e message unlimited leng t h p ay l oad fields added by the packet handler in tx and processed and removed in rx message part of the payload optional user provided fields which are part of the payload figure 35. unlimited length packet format
rfm92w / 93w v 3.0 page 71 ? t el: +86-755-82973805 fax: +86-755-82973550 e-mail: sales@hoper f .com http://ww w .hoper f .com 4.2.14.3. tx processing in tx mode the packet handler dynamically builds the packet by performing the following operations on the payload available in the fifo: ? add a programmable number of preamble bytes. ? add a programmable sync word. ? optionally calculating crc over complete payload field (optional length byte + optional address byte + message) and appending the 2 bytes checksum. ? optional dc-free encoding of the data (manchester or whitening). only the payload (including optional address and length fields) is required to be provided by the user in the fifo. the transmission of packet data is initiated by the packet ha ndler only if the chip is in tx mode and the transmission condition defined by txstartcondition is fulfilled. if transmission condition is not fulfilled then the packet handler transmits a preamble sequence until the condition is met. this happens only if the preamble length /= 0, otherwise it transmits a zero or one until the condition is met to transmit the packet data. the transmission condition itself is defined as: ? if txstartcondition = 1, the packet handler waits until the first byte is written into the fifo, then it starts sending the preamble followed by the sync word and user payload ? if txstartcondition = 0, the packet handler waits until the number of bytes written in the fifo is equal to the number defined in regfifothresh + 1 ? if the condition for transmission was already fulfilled i.e. the fifo was fille d in sleep/stdby then the transmission of packet starts immediately on enabling tx 4.2.14.4. rx processing in rx mode the packet handler extracts the user payload to the fifo by performing the following operations: ? receiving the preamble and stripping it off. ? detecting the sync word and stripping it off. ? optional dc-free decoding of data. ? optionally checking the address byte. ? optionally checking crc and reflecting the result on crcok. . only the payload (including optional address and length fields) is made available in the fifo. when the rx mode is enabled the demodulator receives the preamble followed by the detection of sync word. if fixed length packet format is enabled then the number of bytes received as the payload is given by the payloadlength parameter. in variable length mode the first byte received after the sync word is interpreted as the length of the received packet. the internal length counter is initialized to this received length. the payloadlength register is set to a value which is greater than the maximum expected length of the received packet. if the received length is greater than the maximum length stored in payloadlength register the packet is discarded otherwise the complete packet is received. if the address check is enabled then the second byte received in case of variable length and first byte in case of fixed length is the address byte. if the address matches to the one in the nodeaddress field reception of the data continues otherwise it's stopped. the crc check is performed if crcon = 1 and the result is available in crcok indicating that the
rfm92w / 93w v 3.0 page 72 ? t el: +86-755-82973805 fax: +86-755-82973550 e-mail: sales@hoper f .com http://ww w .hoper f .com crc was successful. an interrupt ( payloadready ) is also generated on dio0 as soon as the payload is available in the fifo. the payload available in the fifo can also be read in sleep/standby mode. if the crc fails the payloadready interrupt is not generated and the fifo is cleared. this function can be overridden by setting crcautoclearoff = 1, forcing the availability of payloadready interrupt and the payload in the fifo even if the crc fails. 4.2.14.5. handling large packets when payloadlength exceeds fifo size (64 bytes) whether in fixed, variable or unlimited length packet format, in addition to packetsent in tx and payloadready or crcok in rx, the fifo interrupts/flags can be used as described below: ? for tx: fifo can be prefilled in sleep/standby but must be refilled ?on-the-fly? during tx with the rest of the payload. 1) pre-fill fifo (in sleep/standby first or directly in tx mode) until fifothreshold or fifofull is set 2) in tx, wait for fifothreshold or fifoempty to be set (i.e. fifo is nearly empty) 3) write bytes into the fifo until fifothreshold or fifofull is set. 4) continue to step 2 until the entire message has been written to the fifo ( packetsent will fire when the last bit of the packet has been sent). ? for rx: fifo must be emptied ?on-the-fly? during rx to prevent fifo overrun. 1) start reading bytes from the fifo when fifoempty is cleared or fifothreshold becomes set. 2) suspend reading from the fifo if fifoempty fires before all bytes of the message have been read 3) continue to step 1 until payloadready or crcok fires 4) read all remaining bytes from the fifo either in rx or sleep/standby mode 4.2.14.6. packet filtering the rfm92w/93w packet handler offers several mechanisms for packet filtering, ensuring that only useful packets are made available to the uc, significantly reducing system power consumption and software complexity. sync word based sync word filtering/recognition is used for identifying the start of the payload and also for network identification. as previously described, the sync word recogniti on block is configured (size, value) in regsyncconfig and regsyncvalue(i) registers. this information is used both for appending sync word in tx and filtering packets in rx. every received packet which does not start with this locally configured sync word is automatically discarded and no interrupt is generated. when the sync word is detected payload reception automatically starts and syncaddressmatch is asserted. note sync word values containing 0x00 are forbidden.
rfm92w / 93w v 3.0 page 73 ? t el: +86-755-82973805 fax: +86-755-82973550 e-mail: sales@hoper f .com http://ww w .hoper f .com address based address filtering can be enabled via the addressfiltering bits. it adds another level of filtering above sync word (i.e. sync must match first) and is typically useful in a multi-node networks where a network id is shared between all nodes (sync word) and each node has its own id (address). two address based filtering options are available: ? addressfiltering = 01 : received address field is compared with internal register nodeaddress . if they match then the packet is accepted and processed, otherwise it is discarded. ? addressfiltering = 10 : received address field is compared with internal registers nodeaddress and broadcastaddress . if either is a match, the received packet is accepted and processed, otherwise it is discarded. this additional check with a constant is useful for implementing broadcast in a multi-node networks please note that the received address byte, as part of the pa yload, is not stripped off the packet and is made available in the fifo. in addition, nodeaddress and addressfiltering only apply to rx. on tx side, if address filtering is expected, the address byte should simply be put into the fifo like any other byte of the payload. as address filtering requires a sync word match hence both features share the same interrupt flag syncaddressmatch . length based in variable length packet mode, payloadlength must be programmed with the maximum payload length permitted. if received length byte is smaller than this maximum then the packet is accepted and processed, otherwise it is discarded. please note that the received length byte, as part of the payload, is not stripped off the packet and is made available in the fifo. to disable this function the user should set the value of the payloadlength to 2047. crc based the crc check is enabled by setting bit crcon in regpacketconfig1 . it is used for checking the integrity of the message. ? on tx side a two byte crc checksum is calculated on the payload part of the packet and appended to the end of the message ? on rx side the checksum is calculated on the received payload and compared with the two checksum bytes received. the result of the comparison is stored in bit crcok. by default, if the crc check fails then the fifo is automatically cleared and no interrupt is generated. this filtering functio n can be disabled via crcautoclearoff bit and in this case, even if crc fails, the fifo is not cleared and only payloadready interrupt goes high. please note that in both cases, the two crc checksum bytes are stripped off by the packet handler and only the payload is made available in the fifo. two crc implementations are selected with bit crcwhiteningtype . table 30 crc description crc t ype cr c whit e n i ng t y pe polynomial seed v alue complemented ccitt 0 (default) x 16 + x 12 + x 5 + 1 0x1d0f y es ibm 1 x 16 + x 15 + x 2 + 1 0xffff no a c code implementation of each crc type is proposed in application section 7.
rfm92w / 93w v 3.0 page 74 ? t el: +86-755-82973805 fax: +86-755-82973550 e-mail: sales@hoper f .com http://ww w .hoper f .com 4.2.14.7. dc-free data mechanisms the payload to be transmitted may contain long sequences of 1's and 0's, which introduces a dc bias in the transmitted signal. the radio signal thus produced has a non uniform powe r distribution over the occupied channel bandwidth. it also introduces data dependencies in the normal operation of the demodul ator. thus it is useful if the transmitted data is random and dc free. for such purposes, two techniques are made available in the packet handler: manchester encoding and data whitening. note only one of the two methods can be enabled at a time. manchester encoding manchester encoding/decoding is enabled if dcfree = 01 and can only be used in packet mode. the nrz data is converted to manchester code by coding '1' as ?10? and '0' as ?01?. in this case, the maximum chip rate is the maximum bit rate give n in the specifications section and the actual bit rate is half the chip rate. manchester encoding and decoding is only applied to the payload and crc checksum while preamble and sync word are kept nrz. however, the chip rate from preamble to crc is the same and defined by bitrate in regbitrate (chip rate = bit rate nrz = 2 x bit rate manchester). manchester encoding/decoding is thus transparent with nrz transferred between fifo and mcu. 1/br ...sync 1/br payload... rf chips @ br ... 1 1 1 0 1 0 0 1 0 0 1 0 1 1 0 1 0 ... user/nrz bits t manchester off ... 1 1 1 0 1 0 0 1 0 0 1 0 1 1 0 1 0 ... user/nrz bits manchester on ... 1 1 1 0 1 0 0 1 0 0 1 1 ... data whitening figure 36. manchester encoding/decoding another technique called whitening or scrambling is widely us ed for randomizing the user data before radio transmission. the data is whitened using a random sequence on the tx side and de-whitened on the rx side using the same sequence. compared to manchester coding, whitening has the added advantage that the nrz data rate is retained i.e. the effective actual bit rate is not halved. the whitening/de-whitening process is enabled if dcfree = 10 . a 9-bit lfsr is used to generate a random sequence. the payload and 2-byte crc checksum is then xored with this random sequence as shown below. the data is de-whitened on the receiver side by xoring with the same random sequence. payload whitening/de-whitening is thus made transparent to the user who still provides/retrieves nrz data to/from the fifo.
rfm92w / 93w v 3.0 page 75 ? t el: +86-755-82973805 fax: +86-755-82973550 e-mail: sales@hoper f .com http://ww w .hoper f .com lfs r p oly nom ia l =x 9 + x 5 + 1 x 8 x 7 x 6 x 5 x 4 x 3 x 2 x 1 x 0 tra n s m it d a ta w h iten ed da ta figure 37. data whitening polynomial 4.2.14.8. beacon tx mode in some short range wireless network topologies a repetitive me ssage, also known as beacon , is transmitted periodically by a transmitter. the beacon tx mode allows for the re-trans mission of the same packet without having to fill the fifo multiple times with the same data. when beaconon in regpacketconfig2 is set to 1 the fifo can be filled only once in sleep or stdby mode with the required payload. after a first transmission, fifoempty will go high as usual, but the fifo content will be restored when the chip exits transmit mode. fifoempty , fifofull and fifolevel flags are also restored. this feature is only available in fixed packet format with the payload length smaller than the fifo size. the control of the chip modes (tx-sleep-tx....) can either be undertaken by th e microcontroller, or be automated in the top sequencer. see example in section 4.2.14.8. the beacon tx mode is exited by setting beaconon to 0 and clearing the fifo by setting fifooverrun to 1. 4.2.15. io-homecontrol ? compatibility mode the rfm92w/93w features a io-homecontrol ? compatibility mode. please contact your local semtech representative for details on its implementation.
rfm92w / 93w v 3.0 page 76 ? t el: +86-755-82973805 fax: +86-755-82973550 e-mail: sales@hoper f .com http://ww w .hoper f .com 4.3. spi interface the spi interface gives access to the configuration register via a synchronous full-duplex protocol corresponding to cpol = 0 and cpha = 0 in motorola/freescale nomenclature. only the slave side is implemented. three access modes to the registers are provided: ? single access: an address byte followed by a data byte is sent for a write access whereas an address byte is sent and a read byte is received for the read access. the nss pin goes low at the beginning of the frame and goes high after the data byte. ? burst access: the address byte is followed by several data bytes. the address is automatically incremented internally between each data byte. this mode is available for both read and write accesses. the nss pin goes low at the beginning of the frame and stay low between each byte. it goes high only after the last byte transfer. ? fifo access: if the address byte corresponds to the address of the fifo, then succeeding data byte will address the fifo. the address is not automatically incremented but is memorized and does not need to be sent between each data byte. the nss pin goes low at the beginning of the frame and stay low between each byte. it goes high only after the last byte transfer. the figure below shows a typical spi single access to a register. figure 38. spi timing diagram (single access) mosi is generated by the master on the falling edge of sck and is sampled by the slave (i.e. this spi interface) on the rising edge of sck. miso is generated by the slave on the falling edge of sck. a transfer is always started by the nss pin going low. miso is high impedance when nss is high. the first byte is the address byte. it is comprises: ? a wnr bit, which is 1 for write access and 0 for read access. ? then 7 bits of address, msb first. the second byte is a data byte, either sent on mosi by the master in case of a write access or received by the master on miso in case of read access. the data byte is transmitted msb first. proceeding bytes may be sent on mosi (f or write access) or received on miso (for read access) without a rising nss edge and re-sending the address. in fifo mode, if the address was the fifo address then the bytes will be written / read at the fifo address. in burst mode, if the address was not the fifo address, then it is automatically incremented for each new byte received.
rfm92w / 93w v 3.0 page 77 ? t el: +86-755-82973805 fax: +86-755-82973550 e-mail: sales@hoper f .com http://ww w .hoper f .com the frame ends when nss goes high. the next frame must start with an address byte. the single access mode is therefore a special case of fifo / burst mode with only 1 data byte transferred. during the write access the byte transferred from the slave to the master on the miso line is the value of the written register before the write operation.
rfm92w / 93w v 3.0 page 78 ? t el: +86-755-82973805 fax: +86-755-82973550 e-mail: sales@hoper f .com http://ww w .hoper f .com 5. rfm92w/93w analog & rf frontend electronics 5.1. power supply strategy the rfm92w/93w employs an internal voltage regulation sc heme which provides stable operating voltage, and hence device characteristics, over the full industrial temperature and operating voltage range. this includes up to +17 dbm of rf output power which is maintained from 1.8 v to 3.7 v and +20 dbm from 2.4 v to 3.7 v. the rfm92w/93w can be powered from any low-noise voltage source via pins vbat1 and vbat2. decoupling capacitors should be connected, as suggested in the reference design of the applications section of this document, on vr_pa, vr_dig and vr_ana pins to ensure correct operation of the built-in voltage regulators. 5.2. low battery detector a low battery detector is also included allowing the generation of an interrupt signal in response to the supply voltage dropping below a programmable threshold that is adjustable through the register reglowbat . the interrupt signal can be mapped to any of the dio pins by programming regdiomapping . 5.3. frequency synthesis 5.3.1. crystal oscillator the crystal oscillator is the main timing reference of the rfm92w/93w. it is used as the reference for the pll?s frequency synthesis and as the clock signal for all digital processing. the crystal oscillator startup time, ts_osc , depends on the electrical characteristics of the crystal reference used, for more information on the electrical specif ication of the crystal see section 2.3. th e crystal connects to the pierce oscillator of pins xta and xtb. the rfm92w/93w optimizes the startup time and automatically triggers the pll when the oscillator signal is stable. optionally, an external clock can be used to replace the crystal oscillator. this typically takes the form of a tight tolerance temperature compensated crystal oscillator (tcxo). when using an external clock source the bit tcxoinputon of register regtcxo should be set to 1 and the external clock has to be provided on xta (pin 4). xtb (pin 5) should be left open. the peak-peak amplitude of the input signal must never exceed 1.8 v. please consult your tcxo supplier for an appropriate value of decoupling capacitor, c d . xta xtb tcxo 32 mhz nc op vcc vcc gnd c d figure 39. tcxo connection
rfm92w / 93w v 3.0 page 79 ? t el: +86-755-82973805 fax: +86-755-82973550 e-mail: sales@hoper f .com http://ww w .hoper f .com 5.3.2. clkout output the reference frequency, or a fraction of it, can be provided on dio5 (pin 12) by modifying bits clkout in regdiomapping2 . two typical applications of the clkout output include: ? to provide a clock output for a companion processor, thus saving the cost of an additional oscillator. clkout can be made available in any operation mode except sleep mode and is automatically enabled at power on reset. ? to provide an oscillator reference output. measurement of the clkout signal enables simple software trimming of the initial crystal tolerance. note to minimize the current consumption of the rfm92w/93w, please ensure that the clkout signal is disabled when not required. 5.3.3. pll the local oscillator of the rfm92w/93w is derived from a frac tional-n pll that is referenced to the crystal oscillator circuit. two plls are available for transmit mode operati on - either low phase noise or low current consumption to maximize either transmit power consumption or transmit spectral purity respectively. both plls feature a programmable bandwidth setting where one of four discrete preset bandwidths may be accessed. for reference the relative performance of both low consumption and low phase noise plls, for each programmable bandwidth setting, is shown in the following figure.
rfm92w / 93w v 3.0 page 80 ? t el: +86-755-82973805 fax: +86-755-82973550 e-mail: sales@hoper f .com http://ww w .hoper f .com figure 40. typical phase noise performances of the low consumption and low phase noise plls. note in receive mode only the low consumption pll is available. the rfm92w/93w pll uses a 19-bit sigma-delta modulato r whose frequency resolution, constant over the whole frequency range, is given by: f xos c f ste p = ---------------- 2 19
rfm92w / 93w v 3.0 page 81 ? t el: +86-755-82973805 fax: +86-755-82973550 e-mail: sales@hoper f .com http://ww w .hoper f .com the carrier frequency is programmed through regfrf , split across addresses 0x06 to 0x08: f rf = f step frf (23,0) note the frf setting is split across 3 bytes. a change in the center frequency will only be taken into account when the least significant byte frflsb in regfrflsb is written. this allows the potential for user generation of m-ary fsk at very low bit rates. this is possible where frequency modulation is achieved by direct programming of the programmed rf centre frequency. to enable this functionality set the fasthopon bit of register regpllhop. 5.3.4. rc oscillator all timing operations in the low-power sleep state of the top level sequencer rely on the accuracy of the internal low- power rc oscillator. this oscillator is automatically calib rated at the device power-up not requiring any user input.
rfm92w / 93w v 3.0 page 82 ? t el: +86-755-82973805 fax: +86-755-82973550 e-mail: sales@hoper f .com http://ww w .hoper f .com 5.4. transmitter description the transmitter of rfm92w/93w comprises the frequency synthesizer, modulator (both lora tm ? and fsk/ook) and power amplifier blocks, together with the dc biasing and ramping functionality that is provided through the vr_pa block. 5.4.1. architecture description the architecture of the rf front end is shown in the following diagram. here we see that the unregulated pa0 is connected to the rfo pin features a single low power amplifier device. the pa_boost pin is connected to the internally regulated pa1 and pa2 circuits. here pa2 is a high power amplifier that permits continuous operation up to +17 dbm and duty cycled operation up to +20 dbm. for full details of op eration at +20 dbm please consult section 5.4.3. lna rf i re c e iv e r ch a in pa 0 rfo pa 1 loc al o s c illa to r pa _ b o os t pa 2 figure 41. rf front-end architecture shows the internal pa configuration. 5.4.2. rf power amplifiers three power amplifier blocks, pa0 - pa2, are available in the rfm92w/93w. pa0 is a high efficiency amplifier capable of yielding rf power programmable in 1 db steps from -1 dbm to +14 dbm directly into a 50 ohm load with low current consumption. pa0 is connected to pin rfo (pin 24). pa1 and pa2 are both connected to pin pa_boost (pin 27). there are two potential configurations of these power amplifiers, fixed or programmable. in the fixed configuration they can deliver up to +20 dbm. in programmable configuration they can provide from +17 dbm to +2 dbm in 1 db programmable steps. naturally, low impedance matching and harmonic filtering is required to ensure rf power delivery and regulatory compliance. (see the applications section of this document for more details). table 31 power amplifier mode selection truth table paselect mode power range pout formula 0 pa0 output on pin rfo -1 to +14 dbm -1 dbm + outputpower 1 pa1 and pa2 combined on pin pa_- boost +2 to +17 dbm +2 dbm + outputpower 1 pa1+pa2 on pa_boost with high output power +20 dbm settings (see 5.4.3) +5 to +20 dbm +5 dbm + outputpower
rfm92w / 93w v 3.0 page 83 ? t el: +86-755-82973805 fax: +86-755-82973550 e-mail: sales@hoper f .com http://ww w .hoper f .com notes - for +20 dbm restrictions on operation please consult the following section. - to ensure correct operation at the highest power levels ensure that the current limiter ocptrim is adjusted to permit delivery of the requisite supply current. - if the pa_boost pin is not used it may be left floating. 5.4.3. high power +20 dbm operation the rfm92w/93w has a high power +20 dbm capability on pa_boost pin, with the following settings: table 32 high power settings register address value for high power default value pa0 or +17dbm description regpadac 0x5a 0x87 0x84 high power pa control notes - high power settings must be turned off when using pa0 - the over current protection limit should be adapted to the actual power level, in regocp specific absolute maximum ratings and operating range restrict ions apply to the +20 dbm operation. they are listed in table 33 and table 34. table 33 operating range, +20 dbm operation symbol description min max unit dc_20dbm duty cycle of transmission at +20 dbm output - 1 % vswr_20dbm maximum vswr at antenna port, +20 dbm output - 3:1 - table 34 operating range, +20 dbm operation symbol description min max unit vddop_20dbm supply voltage, +20 dbm output 2.4 3.7 v the duty cycle of transmission at +20 dbm is limited to 1%, with a maximum vswr of 3:1 at antenna port, over the standard operating range (-40 to +85 c). for any other operating conditions, contact your semtech representative.
rfm92w / 93w v 3.0 page 84 ? t el: +86-755-82973805 fax: +86-755-82973550 e-mail: sales@hoper f .com http://ww w .hoper f .com 5.4.4. over current protection the power amplifiers of rfm92w/93w are protected against current over supply in adverse rf load conditions by the over current protection block. this has the added benefit of protecting battery chemistries with limited peak current capability and minimising worst case pa c onsumption in battery life calculations. the current limiter value is controlled by the ocptrim bits in regocp and is calculated according to the following formulas: table 35 trimming of the ocp current ocptrim i max imax formula 0 to 15 45 to 120 ma 45 + 5* ocptrim [ma] 16 to 27 130 to 240 ma -30 + 10* ocptrim [ma] 27+ 240 ma 240 [ma] note imax sets a limit on the current drain of the power amplifier only, hence the maximum current drain of the rfm92/ 73 is equal to imax + i fs . 5.5. receiver description 5.5.1. overview the rfm92w/93w features a digital receiver with the analog to digital conversion process performed directly following the lna-mixer block. in addition to the lora tm ?? modulation scheme the low-if receiver is able to demodulate ask, ook, (g)fsk and (g)msk modulation. all filtering, demodulation, gain control, synchronization and packet handling is performed digitally allowing a high degree of programmable flexib ility. the receiver also has automatic gain calibration, this improves the precision of rssi measurement and enhances image rejection. 5.5.2. receiver enabled and receiver active states in the receiver operating mode two states of functionality are defined. upon initial transition to receiver operating mode the receiver is in the ?receiver-enabled? state. in this state the receiver awaits for either the user defined valid preamble or rs si detection criterion to be fulfilled. once met the receiver enters ?receiver-active? state. in this second state the received signal is processed by the packet engine and top level sequencer. for a complete description of the digital functions of the rfm92w/93w receiver please see section 5.5 of the datasheet.
rfm92w / 93w v 3.0 page 85 ? t el: +86-755-82973805 fax: +86-755-82973550 e-mail: sales@hoper f .com http://ww w .hoper f .com figure 42. receiver block diagram 5.5.3. automatic gain control in fsk/ook mode the agc feature allows receiver to handle a wide rx input dy namic range from the sensitivity level up to maximum input level of 0 dbm or more, whilst optimizing the system linearity. the following table shows typical nf and iip3 performances for the rfm92w/93w lna gains available. table 36 lna gain control and performances rx input level (pin) gain setting lnagain relative lna gain [db] nf [db] iip3 [dbm] pin <= agcthresh1 g1 ?001? 0 db 7 -12 agcthresh1 < pin <= agcthresh2 g2 ?010? -6 db 11 -8 agcthresh2 < pin <= agcthresh3 g3 ?011? -12 db 16 -5 agcthresh3 < pin <= agcthresh4 g4 ?100? -24 db 26 5 agcthresh4 < pin <= agcthresh5 g5 ?110? -26 db 34 10 agcthresh5 < pin g6 ?111? -48 db 44 10
rfm92w / 93w v 3.0 page 86 ? t el: +86-755-82973805 fax: +86-755-82973550 e-mail: sales@hoper f .com http://ww w .hoper f .com towards -125 dbm agcstep1 agcstep2 agcstep3 agcstep4 agcstep5 pin [dbm] g1 g2 g3 g4 g5 g6 higher sensitivity lower linearity lower noise figure lower sensitivity higher linearity higher noise figure figure 43. agc steps definition the agc reference power level is determined as follows: agc reference [dbm]=-174 dbm + 10 * log(2 * rxbw ) + snr + agcreferencelevel with snr = 8 db (considered a fixed value). a detailed description of the receiver setup to enable the agc is provided in section 9.3. 5.5.4. rssi in fsk/ook mode the rssi provides a measure of the incoming signal power at rf input port measured within the receiver bandwidth. the signal power is available in rssivalue . this value is absolute in units of dbm and with a resolution of 0.5 db. the formula below relates the register value to the absolute input signal level at the rf input port: rssivalue = ? 2 ? rf level [ dbm ] + rssioffset [ db ] the rssi value can be compensated to take into account the loss in the matching network or even the gain of an additional lna by using rssioffset . the offset can be chosen in 1 db steps from -16 to +15 db. when compensation is applied the effective signal strength is read as follows: rssi [ dbm ] = ? rssivalue 2 the rssi value is smoothed on a user defined number of measured rssi samples. the precision of the rssi value is related to the number of rssi samples used. rssismoothing selects the number of rssi samples from a minimum of 2 samples up to 256 samples in increments of power of 2. table 37 gives the estimation of the rssi accuracy for a 10 db snr and response time versus the number of rssi samples programmed in rssismoothing .
rfm92w / 93w v 3.0 page 87 ? t el: +86-755-82973805 fax: +86-755-82973550 e-mail: sales@hoper f .com http://ww w .hoper f .com table 37 rssismoothing options rssismooth i ng number o f samples estimated a ccuracy response time ?000? 2 6 db ?001? 4 5 db ?010? 8 4 db ?011? 16 3 db ?100? 32 2 db ?101? 64 1.5 db ?110? 128 1.2 db ?111? 256 1.1 db the rssi is calibrated when the image and rssi calibration process is launched. please see section for details. 5.5.5. rssi in lora tm ? mode the rssi values reported by the lora tm ?? modem differ from those expressed by the fsk/ook modem. the following formula shows the method used to interpret the lora tm ? rssi values. r ssi [ db m ] = ?125 + rssi 5.5.6. channel filter the role of the channel filter is to reject noise and interference outside of the wanted channel. the rfm92w/93w channel filtering is implemented with a 16-tap finite impulse response (fir) filter. rejection of the filter is high enough that the fi lter stop-band performance is not the dominant influence on adjacent channel rejection performance. this is instead limited by the rfm92w/93w pll phase noise. note to respect sampling criterion in the decimation chain of the receiver, the communication bit rate cannot be set at a higher than twice the single side receiver bandwidth (bitrate < 2 x rxbw) the programmed single side bandwidth rxbw of the channel filter is determined by the parameters rxbwmant and rxbwexp in regrxbw: rxbw = ------------------------ f ---- x ---- o ---- s ---- c ------------------------- rxb wmant 2 rxbwe x p + 2 the following channel filter bandwidths are hence access ible in the case of a 32 mhz reference oscillator. table 38 available rxbw settings rxbwmant (binary/value) r x bwexp (decimal) rxbw ( k hz) fsk / oo k 10b / 24 7 2.6 01b / 20 7 3.1 00b / 16 7 3.9 10b / 24 6 5.2
rfm92w / 93w v 3.0 page 88 ? t el: +86-755-82973805 fax: +86-755-82973550 e-mail: sales@hoper f .com http://ww w .hoper f .com 01b / 20 6 6.3 00b / 16 6 7.8 10b / 24 5 10.4 01b / 20 5 12.5 00b / 16 5 15.6 10b / 24 4 20.8 01b / 20 4 25.0 00b / 16 4 31.3 10b / 24 3 41.7 01b / 20 3 50.0 00b / 16 3 62.5 10b / 24 2 83.3 01b / 20 2 100.0 00b / 16 2 125.0 10b / 24 1 166.7 01b / 20 1 200.0 00b / 16 1 250.0 other settings reserved 5.5.7. temperature measurement a stand alone temperature measurement block is used in order to measure the temperature in all mode except sleep and standby. it is enabled by default and can be stopped by setting tempmonitoroff to 1. the result of the measurement is stored in tempvalue in regtemp . due to process variations the absolute accuracy of the result is +/- 10 c. higher precision requires a calibration procedure at a known temperature. the figure below shows the influence of just such a calibration process. for more information, including source code, please consult the applications section of this document. figure 44. temperature sensor response
rfm92w / 93w v 3.0 page 89 ? t el: +86-755-82973805 fax: +86-755-82973550 e-mail: sales@hoper f .com http://ww w .hoper f .com 6. description of the registers the register mapping depends upon whether fsk/ook or lora tm ? mode has been selected. the following table summarises the location and function of each register and gi ves an overview of the changes in register mapping between both modes of operation. 6.1. register table summary table 39 registers summary address register name reset (por) default (fsk) description fsk/ook mode lora tm ? mode fsk mode lora tm ? mode 0x00 regfifo 0x00 fifo read/write access 0x01 regopmode 0x01 operating mode & lora tm ? / fsk selection 0x02 regbitratemsb unused 0x1a bit rate setting, most significant bits 0x03 regbitratelsb 0x0b bit rate setting, least significant bits 0x04 regfdevmsb 0x00 frequency deviation setting, most significant bits 0x05 regfdevlsb 0x52 frequency deviation setting, least significant bits 0x06 regfrfmsb 0xe4 rf carrier frequenc y , most significant bits 0x07 regfrfmid 0xc0 rf carrier frequenc y , intermediate bits 0x08 regfrflsb 0x00 rf carrier frequenc y , least significant bits 0x09 regpaconfig 0x0f p a selection and output power control 0x0a regparamp 0x19 control of p a ramp time, low phase noise pll 0x0b regocp 0x2b over current protection control 0x0c reglna 0x20 lna settings 0x0d regrxconfig regfifoaddrptr 0x08 0x00 afc, agc, ctrl fifo spi pointer 0x0e regrssiconfig regfifotxba- seaddr 0x02 0x80 rssi start tx data 0x0f regrssicollision regfiforxba- seaddr 0x0a 0x00 rssi collision detector start rx data 0x10 regrssithresh fiforxcurren- taddr 0xff n/a rssi threshold control start ? address o f last packet ? received 0x11 regrssivalue regirqflagsmask n / a n / a rssi value in dbm optional irq flag mask 0x12 regrxbw regirqflags 0x15 0x00 channel filter bw control irq flags 0x13 regafcbw regrxnbbytes 0x0b n/a afc channel filter bw number of received bytes 0x14 regookpeak regrxheadercnt valuemsb 0x28 n/a ook demodulator number of valid headers received 0x15 regookfix regrxheadercnt valuelsb 0x0c threshold of the ook demod 0x16 regookavg regrxpacketcnt valuemsb 0x12 n/a average of the ook demod number of valid packets received 0x17 reserved17 regrxpacketcnt valuelsb 0x47 - 0x18 reserved18 regmodemstat 0x32 0x10 - live lora tm ? modem status 0x19 reserved19 regpktsnrvalue 0x3e n/a - espimation of last packet snr 0x1a regafcfei regpktrssivalue 0x00 n / a a fc and fei control rssi of last pac k et
rfm92w / 93w v 3.0 page 90 ? t el: +86-755-82973805 fax: +86-755-82973550 e-mail: sales@hoper f .com http://ww w .hoper f .com address register name reset (por) default (fsk) description fsk/ook mode lora tm ? mode fsk mode lora tm ? mode 0x1b regafcmsb regrssivalue 0x00 n / a frequency correction value of the afc current rssi 0x1c regafclsb reghopchannel 0x00 n / a fhss start channel 0x1d regfeimsb regmodemconfig 1 0x00 0x08 value of the calculated frequency error modem phy config 1 0x1e regfeilsb regmodemconfig 2 0x00 0x74 modem phy config 2 0x1f regpreamblede- tect regsymbtimeout lsb 0x40 0x64 settings of the preamble detector receiver timeout value 0x20 regrx t imeout1 regpreamblemsb 0x00 0x00 timeout rx request and rssi size of preamble 0x21 regrx t imeout2 regpreamblelsb 0x00 0x08 t imeout rssi and pa y - loadready 0x22 regrx t imeout3 regpay- loadlength 0x00 0x01 t imeout rssi and sync a d - dress lora tm ? payload length 0x23 regrxdelay regmaxpayloadl ength 0x00 0xff delay between rx cycles loratm maximum pay- load length 0x24 regosc reghopperiod 0x05 0x00 rc oscillators settings, clk- out frequency fhss hop period 0x25 regpreamblemsb regfiforxbytead dr 0x00 n/a preamble length, msb address of last byte written in fifo 0x26 regpreamblelsb reserved 0x03 preamble length, lsb lora tm rx data pointer 0x27 regsyncconfig 0x93 sync word recognition control reserved 0x28- 0x2f regsyncvalue1-8 0x55 0x01 sync word bytes, 1 through 8 0x30 regpacketconfig1 0x90 packet mode settings 0x31 regpacketconfig2 0x40 packet mode settings 0x32 regpayloadlength 0x40 payload length setting 0x33 regnodeadrs reserved 0x00 node address reserved 0x34 regbroadcastadrs 0x00 broadcast address 0x35 regfifothresh 0x0f 0x8f fifo threshold, tx start condi- tion 0x36 regseqconfig1 0x00 t op level sequencer settings 0x37 regseqconfig2 0x00 t op level sequencer settings 0x38 reg t imerresol 0x00 t imer 1 and 2 resolution control 0x39 reg t imer1coef 0xf5 t imer 1 setting 0x3a reg t imer2coef 0x20 t imer 2 setting 0x3b regimagecal 0x82 0x02 image calibration engine con- trol 0x3c reg t emp - t emperature sensor value 0x3d reglowbat 0x02 low battery indicator settings 0x3e regirqflags1 0x80 status register: pll lock state, timeout, rssi 0x3f regirqflags2 0x40 status register: fifo handling flags, low battery 0x40 regdiomapping1 0x00 mapping of pins dio0 to dio3 0x41 regdiomapping2 0x00 mapping of pins dio4 and dio5, clkout frequency
rfm92w / 93w v 3.0 page 91 ? t el: +86-755-82973805 fax: +86-755-82973550 e-mail: sales@hoper f .com http://ww w .hoper f .com address register name reset (por) default (fsk) description fsk/ook mode lora tm ? mode fsk mode lora tm ? mode 0x42 regversion 0x22 semtech id relating the silicon revision 0x43 reg a gcref 0x13 adjustment of the agc thresholds 0x44 regagcthresh1 0x0e 0x45 regagcthresh2 0x5b 0x46 regagcthresh3 0xdb 0x4b regpllhop 0x2e control the fast frequency hopping mode 0x58 reg t cxo 0x09 tcxo or x t al input setting 0x5a regpadac 0x84 higher power settings of the p a 0x5c regpll 0xd0 control of the pll bandwidth 0x5e regplllowpn 0xd0 control of the low phase noise pll bandwidth 0x6c regformer t emp - stored temperature during the former iq calibration 0x70 regbitratefrac 0x00 fractional part in the bit rate division ratio 0x42 + reg t est - internal test registers. do not overwrite note - reset values are automatically refreshed in the chip at power on reset - default values are the semtech recommended register values, optimizing the device operation - registers for which the default value differs from the reset value are denoted by an * in the tables of section 6.2
rfm92w / 93w v 3.0 page 92 ? t el: +86-755-82973805 fax: +86-755-82973550 e-mail: sales@hoper f .com http://ww w .hoper f .com 6.2. fsk/ook mode register map this section details the rfm92w/93w register mapping and the precise contents of each register in fsk/ook mode. convention: r: read, w: write, t:trigger, c: clear table 40 register map name (address) bits variable name mode default value fsk/ook description regfifo (0x00) 7-0 fifo rw 0x00 fifo data input/output registers for common settings regopmode (0x01) 7 longrangemode r 0x00 0 ? fsk/ook mode 1 ? lora tm ? mode this bit can be modified only in sleep mode. a write operation on other device modes is ignored. 6-5 modulationtype rw 0x00 modulation scheme: 00 ? fsk 01 ? ook 10 -11 ? reserved 4-3 modulationshaping rw 0x00 data shaping: in fsk: 00 ? no shaping 01 ? gaussian filter bt = 1.0 10 ? gaussian filter bt = 0.5 11 ? gaussian filter bt = 0.3 in ook: 00 ? no shaping 01 ? filtering with f cutoff = bit_rate 10 ? filtering with f cutoff = 2*bit_rate (for bit_rate < 125 kbps) 11 ? reserved 2-0 mode rw 0x01 transceiver modes 000 ? sleep mode 001 ? stdby mode 010 ? fs mode tx (fstx) 011 ? transmitter mode (tx) 100 ? fs mode rx (fsrx) 101 ? receiver mode (rx) 110 ? reserved 111 ? reserved regbitratemsb (0x02) 7-0 bitrate(15:8) rw 0x1a msb of bit rate (chip rate if manchester encoding is enabled) regbitratelsb (0x03) 7-0 bitrate(7:0) rw 0x0b lsb of bit rate (chip rate if manchester encoding is enabled) bitrate = --------------------------- f ---- x ---- o ----- s --- c ------------------------------ bi tr ate (15,0) + - b ---- i -- t -- r -- a ---- t -- e --- f ---- r -- a ---- c - 16 default value: 4.8 kbps
rfm92w / 93w v 3.0 page 93 ? t el: +86-755-82973805 fax: +86-755-82973550 e-mail: sales@hoper f .com http://ww w .hoper f .com name (address) bits variable name mode default value fsk/ook description regfdevmsb (0x04) 7-6 unused r 0x00 unused 5-0 fdev(13:8) rw 0x00 msb of the frequency deviation regfdevlsb (0x05) 7-0 fdev(7:0) rw 0x52 lsb of the frequency deviation fdev = fste p fdev (15,0) default value: 5 khz regfrfmsb (0x06) 7-0 frf(23:16) rw 0xe4 msb of the rf carrier frequency regfrfmid (0x07) 7-0 frf(15:8) rw 0xc0 msb of the rf carrier frequency regfrflsb (0x08) 7-0 frf(7:0) rw 0x00 lsb of rf carrier frequency frf = f ste p frf ( 23;0 ) default value: 915.000 mhz the rf frequency is taken into account internally only when: - entering fsrx/fstx modes - re-starting the receiver registers for the transmitter regpaconfig (0x09) 7 paselect rw 0x00 selects pa output pin 0 ? rfo pin. maximum power of +13 dbm 1 ? pa_boost pin. maximum power of +20 dbm 6-4 unused r 0x00 unused 3-0 outputpower rw 0x0f output power setting, with 1db steps pout = 2 + outputpower [dbm], on pa_boost pin pout = -1 + outputpower [dbm], on rfo pin regparamp (0x0a) 7-5 unused r - unused 4 lowpntxplloff rw 0x01 select a higher power, lower phase noise pll only when the transmitter is used: 0 ? standard pll used in rx mode, lower pn pll in tx 1 ? standard pll used in both tx and rx modes 3-0 paramp rw 0x09 rise/fall time of ramp up/down in fsk 0000 ? 3.4 ms 0001 ? 2 ms 0010 ? 1 ms 0011 ? 500 us 0100 ? 250 us 0101 ? 125 us 0110 ? 100 us 0111 ? 62 us 1000 ? 50 us 1001 ? 40 us (d) 1010 ? 31 us 1011 ? 25 us 1100 ? 20 us 1101 ? 15 us 1110 ? 12 us 1111 ? 10 us
rfm92w / 93w v 3.0 page 94 ? t el: +86-755-82973805 fax: +86-755-82973550 e-mail: sales@hoper f .com http://ww w .hoper f .com name (address) bits variable name mode default value fsk/ook description regocp (0x0b) 7-6 unused r 0x00 unused 5 ocpon rw 0x01 enables overload current protection (ocp) for the pa: 0 ? ocp disabled 1 ? ocp enabled 4-0 ocptrim rw 0x0b trimming of ocp current: i max = 45+5*ocptrim [ma] if ocptrim <= 15 (120 ma) / i max = -30+10*ocptrim [ma] if 15 < ocptrim <= 27 (130 to 240 ma) i max = 240ma for higher settings default i max = 100ma registers for the receiver reglna (0x0c) 7-5 lnagain rw 0x01 lna gain setting: 000 ? reserved 001 ? g1 = highest gain 010 ? g2 = highest gain ? 6 db 011 ? g3 = highest gain ? 12 db 100 ? g4 = highest gain ? 24 db 101 ? g5 = highest gain ? 36 db 110 ? g6 = highest gain ? 48 db 111 ? reserved note: reading this address always returns the current lna gain (which may be different from what had been previously selected if agc is enabled. 4-2 - r 0x00 unused 1-0 lnaboost rw 0x00 improves the system noise figure at the expense of rx current consumption: 00 ? default setting, meeting the specification 11 ? improved sensitivity regrxconfig (0x0d) 7 restartrxoncollision rw 0x00 turns on the mechanism restarting the receiver automatically if it gets saturated or a packet collision is detected 0 ? no automatic restart 1 ? automatic restart on 6 restartrxwithoutplllock wt 0x00 triggers a manual restart of the receiver chain when set to 1. use this bit when there is no frequency change, restartrxwithplllock otherwise. 5 restartrxwithplllock wt 0x00 triggers a manual restart of the receiver chain when set to 1. use this bit when there is a frequency change, requiring some time for the pll to re-lock. 4 afcautoon rw 0x00 0 ? no afc performed at receiver startup 1 ? afc is performed at each receiver startup 3 agcautoon rw 0x01 0 ? lna gain forced by the lnagain setting 1 ? lna gain is controlled by the agc 2-0 rxtrigger rw 0x06 * selects the event triggering agc and/or afc at receiver startup. see table 18 for a description.
rfm92w / 93w v 3.0 page 95 ? t el: +86-755-82973805 fax: +86-755-82973550 e-mail: sales@hoper f .com http://ww w .hoper f .com name (address) bits variable name mode default value fsk/ook description regrssiconfig (0x0e) 7-3 rssioffset rw 0x00 signed rssi offset, to compensate for the possible losses/gains in the front-end (lna, saw filter...) 1db / lsb, 2?s complement format 2-0 rssismoothing rw 0x02 defines the number of samples ta ken to average the rssi result: 000 ? 2 samples used 001 ? 4 samples used 010 ? 8 samples used 011 ? 16 samples used 100 ? 32 samples used 101 ? 64 samples used 110 ? 128 samples used 111 ? 256 samples used regrssicollision (0x0f) 7-0 rssicollisionthreshold rw 0x0a sets the threshold used to consider that an interferer is detected, witnessing a packet collision. 1db/lsb (only rssi increase) default: 10db regrssithresh (0x10) 7-0 rssithreshold rw 0xff rssi trigger level for the rssi interrupt: - rssithreshold / 2 [dbm] regrssivalue (0x11) 7-0 rssivalue r - absolute value of the rssi in dbm, 0.5db steps. rssi = - rssivalue/2 [dbm] regrxbw (0x12) 7 unused r - unused 6-5 reserved rw 0x00 reserved 4-3 rxbwmant rw 0x02 channel filter bandwidth control: 00 ? rxbwmant = 16 10 ? rxbwmant = 24 01 ? rxbwmant = 20 11 ? reserved 2-0 rxbwexp rw 0x05 channel filter bandwidth control: fsk mode: rxb w = ------------------------ f ---- x ---- o ---- s ---- c ------------------------- rx bwmant 2 rxbwexp + 2 regafcbw (0x13) 7-5 reserved rw 0x00 reserved 4-3 rxbwmantafc rw 0x01 rxbwmant parameter used during the afc 2-0 rxbwexpafc rw 0x03 rxbwexp parameter used during the afc regookpeak (0x14) 7-6 reserved rw 0x00 reserved 5 bitsyncon rw 0x01 enables the bit synchronizer. 0 ? bit sync disabled (not possible in packet mode) 1 ? bit sync enabled 4-3 ookthreshtype rw 0x01 selects the type of threshold in the ook data slicer: 00 ? fixed threshold 10 ? average mode 01 ? peak mode (default) 11 ? reserved 2-0 ookpeaktheshstep rw 0x00 size of each decrement of the rssi threshold in the ook demodulator: 000 ? 0.5 db 001 ? 1.0 db 010 ? 1.5 db 011 ? 2.0 db 100 ? 3.0 db 101 ? 4.0 db 110 ? 5.0 db 111 ? 6.0 db
rfm92w / 93w v 3.0 page 96 ? t el: +86-755-82973805 fax: +86-755-82973550 e-mail: sales@hoper f .com http://ww w .hoper f .com name (address) bits variable name mode default value fsk/ook description regookfix (0x15) 7-0 ookfixedthreshold rw 0x0c fixed threshold for the data slicer in ook mode floor threshold for the data slicer in ook when peak mode is used regookavg (0x16) 7-5 ookpeakthreshdec rw 0x00 period of decrement of the rssi threshold in the ook demodulator: 000 ? once per chip 001 ? once every 2 chips 010 ? once every 4 chips 011 ? once every 8 chips 100 ? twice in each chip 101 ? 4 times in each chip 110 ? 8 times in each chip 111 ? 16 times in each chip 4 reserved rw 0x01 reserved 3-2 ookaverageoffset rw 0x00 static offset added to the threshold in average mode in order to reduce glitching activity (ook only): 00 ? 0.0 db 10 ? 4.0 db 01 ? 2.0 db 11 ? 6.0 db 1-0 ookaveragethreshfilt rw 0x02 filter coefficients in average mode of the ook demodulator: 00 ? f c chip rate / 32. 01 ? f c chip rate / 8. 10 ? f c chip rate / 4. 11 ? f c chip rate / 2. regres17 to regres19 7-0 reserved rw 0x47 0x32 0x3e reserved. keep the reset values. regafcfei (0x1a) 7-5 unused r - unused 4 agcstart wt 0x00 triggers an agc sequence when set to 1. 3 reserved rw 0x00 reserved 2 unused - - unused 1 afcclear wc 0x00 clear afc register set in rx mode. always reads 0. 0 afcautoclearon rw 0x00 only valid if afcautoon is set 0 ? afc register is not cleared at the beginning of the automatic afc phase 1 ? afc register is cleared at the beginning of the automatic afc phase regafcmsb (0x1b) 7-0 afcvalue(15:8) rw 0x00 msb of the afcvalue, 2?s complement format. can be used to overwrite the current afc value regafclsb (0x1c) 7-0 afcvalue(7:0) rw 0x00 lsb of the afcvalue, 2?s complement format. can be used to overwrite the current afc value regfeimsb (0x1d) 7-0 feivalue(15:8) rw - msb of the measured frequency offset, 2?s complement. must be read before regfeilsb. regfeilsb (0x1e) 7-0 feivalue(7:0) rw - lsb of the measured frequency offset, 2?s complement frequency error = feivalue x fstep
rfm92w / 93w v 3.0 page 97 ? t el: +86-755-82973805 fax: +86-755-82973550 e-mail: sales@hoper f .com http://ww w .hoper f .com name (address) bits variable name mode default value fsk/ook description regpreambledetect (0x1f) 7 preambledetectoron rw 0x01 * enables preamble detector when set to 1. the agc settings supersede this bit during the startup / agc phase. 0 ? turned off 1 ? turned on 6-5 preambledetectorsize rw 0x01 * number of preamble bytes to detect to trigger an interrupt 00 ? 1 byte 10 ? 3 bytes 01 ? 2 bytes 11 ? reserved 4-0 preambledetectortol rw 0x0a * number or chip errors tolerated over preambledetectorsize. 4 chips per bit. regrxtimeout1 (0x20) 7-0 timeoutrxrssi rw 0x00 timeout interrupt is generated timeoutrxrssi *16*t bit after switching to rx mode if rssi interrupt doesn?t occur (i.e. rssivalue > rssithreshold) 0x00: timeoutrxrssi is disabled regrxtimeout2 (0x21) 7-0 timeoutrxpreamble rw 0x00 timeout interrupt is generated timeoutrxpreamble *16*t bit after switching to rx mode if preamble interrupt doesn?t occur 0x00: timeoutrxpreamble is disabled regrxtimeout3 (0x22) 7-0 timeoutsignalsync rw 0x00 timeout interrupt is generated timeoutsignalsync *16*t bit after the rx mode is programmed, if syncaddress doesn?t occur 0x00: timeoutsignalsync is disabled regrxdelay (0x23) 7-0 interpacketrxdelay rw 0x00 additional delay before an automatic receiver restart is launched: delay = interpacketrxdelay*4*tbit rc oscillator registers regosc (0x24) 7-4 unused r - unused 3 rccalstart wt 0x00 triggers the calibration of the rc oscillator when set. always reads 0. rc calibration must be triggered in standby mode. 2-0 clkout rw 0x07 * selects clkout frequency: 000 ? fxosc 001 ? fxosc / 2 010 ? fxosc / 4 011 ? fxosc / 8 100 ? fxosc / 16 101 ? fxosc / 32 110 ? rc (automatically enabled) 111 ? off packet handling registers regpreamblemsb (0x25) 7-0 preamblesize(15:8) rw 0x00 size of the preamble to be sent (from txstartcondition fulfilled). (msb byte) regpreamblelsb (0x26) 7-0 preamblesize(7:0) rw 0x03 size of the preamble to be sent (from txstartcondition fulfilled). (lsb byte)
rfm92w / 93w v 3.0 page 98 ? t el: +86-755-82973805 fax: +86-755-82973550 e-mail: sales@hoper f .com http://ww w .hoper f .com name (address) bits variable name mode default value fsk/ook description regsyncconfig (0x27) 7-6 autorestartrxmode rw 0x02 controls the automatic restart of the receiver after the reception of a valid packet (payloadready or crcok): 00 ? off 01 ? on, without waiting for the pll to re-lock 10 ? on, wait for the pll to lock (frequency changed) 11 ? reserved 5 preamblepolarity rw 0x00 sets the polarity of the preamble 0 ? 0xaa (default) 1 ? 0x55 4 syncon rw 0x01 enables the sync word generation and detection: 0 ? off 1 ? on 3 fifofillcondition rw 0x00 fifo filling condition: 0 ? if syncaddress interrupt occurs 1 ? as long as fifofillcondition is set 2-0 syncsize rw 0x03 size of the sync word: ( syncsize + 1) bytes, ( syncsize ) bytes if iohomeon =1 regsyncvalue1 (0x28) 7-0 syncvalue(63:56) rw 0x01 * 1 st byte of sync word. (msb byte) used if syncon is set. regsyncvalue2 (0x29) 7-0 syncvalue(55:48) rw 0x01 * 2 nd byte of sync word used if syncon is set and (syncsize +1) >= 2. regsyncvalue3 (0x2a) 7-0 syncvalue(47:40) rw 0x01 * 3 rd byte of sync word. used if syncon is set and (syncsize +1) >= 3. regsyncvalue4 (0x2b) 7-0 syncvalue(39:32) rw 0x01 * 4 th byte of sync word. used if syncon is set and (syncsize +1) >= 4. regsyncvalue5 (0x2c) 7-0 syncvalue(31:24) rw 0x01 * 5 th byte of sync word. used if syncon is set and (syncsize +1) >= 5. regsyncvalue6 (0x2d) 7-0 syncvalue(23:16) rw 0x01 * 6 th byte of sync word. used if syncon is set and (syncsize +1) >= 6. regsyncvalue7 (0x2e) 7-0 syncvalue(15:8) rw 0x01 * 7 th byte of sync word. used if syncon is set and (syncsize +1) >= 7. regsyncvalue8 (0x2f) 7-0 syncvalue(7:0) rw 0x01 * 8 th byte of sync word. used if syncon is set and (syncsize +1) = 8.
rfm92w / 93w v 3.0 page 99 ? t el: +86-755-82973805 fax: +86-755-82973550 e-mail: sales@hoper f .com http://ww w .hoper f .com name (address) bits variable name mode default value fsk/ook description regpacketconfig1 (0x30) 7 packetformat rw 0x01 defines the packet format used: 0 ? fixed length 1 ? variable length 6-5 dcfree rw 0x00 defines dc-free encoding/decoding performed: 00 ? none (off) 01 ? manchester 10 ? whitening 11 ? reserved 4 crcon rw 0x01 enables crc calculation/check (tx/rx): 0 ? off 1 ? on 3 crcautoclearoff rw 0x00 defines the behavior of the packet handler when crc check fails: 0 ? clear fifo and restart new packet reception. no payloadready interrupt issued. 1 ? do not clear fifo. payloadready interrupt issued. 2-1 addressfiltering rw 0x00 defines address based filtering in rx: 00 ? none (off) 01 ? address field must match nodeaddress 10 ? address field must match nodeaddress or broadcastaddress 11 ? reserved 0 crcwhiteningtype rw 0x00 selects the crc and whitening algorithms: 0 ? ccitt crc implementation with standard whitening 1 ? ibm crc implementation with alternate whitening regpacketconfig2 (0x31) 7 unused r - unused 6 datamode rw 0x01 data processing mode: 0 ? continuous mode 1 ? packet mode 5 iohomeon rw 0x00 enables the io-homecontrol ? compatibility mode 0 ? disabled 1 ? enabled 4 iohomepowerframe rw 0x00 reserved - linked to io-homecontrol ? compatibility mode 3 beaconon rw 0x00 enables the beacon mode in fixed packet format 2-0 payloadlength(10:8) rw 0x00 packet length most significant bits regpayloadlength (0x32) 7-0 payloadlength(7:0) rw 0x40 if packetformat = 0 (fixed), payload length. if packetformat = 1 (variable), max length in rx, not used in tx. regnodeadrs (0x33) 7-0 nodeaddress rw 0x00 node address used in address filtering. regbroadcastadrs (0x34) 7-0 broadcastaddress rw 0x00 broadcast address used in address filtering.
rfm92w / 93w v 3.0 page 100 ? t el: +86-755-82973805 fax: +86-755-82973550 e-mail: sales@hoper f .com http://ww w .hoper f .com name (address) bits variable name mode default value fsk/ook description regfifothresh (0x35) 7 txstartcondition rw 0x01 * defines the condition to start packet transmission: 0 ? fifolevel (i.e. the number of bytes in the fifo exceeds fifothreshold) 1 ? fifoempty goes low (i.e. at least one byte in the fifo) 6 unused r - unused 5-0 fifothreshold rw 0x0f used to trigger fifolevel interrupt, when: number of bytes in fifo >= fifothreshold + 1 sequencer registers regseqconfig1 (0x36) 7 sequencerstart wt 0x00 controls the top level sequencer when set to ?1?, executes the ?start? transition. the sequencer can only be enabled when the chip is in sleep or standby mode. 6 sequencerstop wt 0x00 forces the sequencer off. always reads ?0? 5 idlemode rw 0x00 selects chip mode during the state: 0: standby mode 1: sleep mode 4-3 fromstart rw 0x00 controls the sequencer transition when sequencerstart is set to 1 in sleep or standby mode: 00: to lowpowerselection 01: to receive state 10: to transmit state 11: to transmit state on a fifolevel interrupt 2 lowpowerselection rw 0x00 selects the sequencer lowpower state after a to lowpowerselection transition: 0: sequenceroff state with chip on initial mode 1: idle state with chip on standby or sleep mode depending on idlemode note: initial mode is the chip lowpower mode at sequencer start. 1 fromidle rw 0x00 controls the sequencer transition from the idle state on a t1 interrupt: 0: to transmit state 1: to receive state 0 fromtransmit rw 0x00 controls the sequencer transition from the transmit state: 0: to lowpowerselection on a packetsent interrupt 1: to receive state on a packetsent interrupt
rfm92w / 93w v 3.0 page 101 ? t el: +86-755-82973805 fax: +86-755-82973550 e-mail: sales@hoper f .com http://ww w .hoper f .com name (address) bits variable name mode default value fsk/ook description regseqconfig2 (0x37) 7-5 fromreceive rw 0x00 controls the sequencer transition from the receive state 000 and 111: unused 001: to packetreceived state on a payloadready interrupt 010: to lowpowerselection on a payloadready interrupt 011: to packetreceived state on a crcok interrupt (1) 100: to sequenceroff state on a rssi interrupt 101: to sequenceroff state on a syncaddress interrupt 110: to sequenceroff state on a preambledetect interrupt irrespective of this setting, transition to lowpowerselection on a t2 interrupt (1) if the crc is wrong (corrupted packet, with crc on but crcautoclearon =0), the payloadready interrupt will drive the sequencer to rxtimeout state. 4-3 fromrxtimeout rw 0x00 controls the state-machine transition from the receive state on a rxtimeout interrupt (and on payloadready if fromreceive = 011): 00: to receive state, via receiverestart 01: to transmit state 10: to lowpowerselection 11: to sequenceroff state note: rxtimeout interrupt is a timeoutrxrssi, timeoutrxpreamble or timeoutsignalsync interrupt 2-0 frompacketreceived rw 0x00 controls the state-machine transition from the packetreceived state: 000: to sequenceroff state 001: to transmit state on a fifoempty interrupt 010: to lowpowerselection 011: to receive via fs mode, if frequency was changed 100: to receive state (no frequency change) regtimerresol (0x38) 7-4 unused r - unused 3-2 timer1resolution rw 0x00 resolution of timer 1 00: timer1 disabled 01: 64 us 10: 4.1 ms 11: 262 ms 1-0 timer2resolution rw 0x00 resolution of timer 2 00: timer2 disabled 01: 64 us 10: 4.1 ms 11: 262 ms regtimer1coef (0x39) 7-0 timer1coefficient rw 0xf5 multiplying coefficient for timer 1 regtimer2coef (0x3a) 7-0 timer2coefficient rw 0x20 multiplying coefficient for timer 2
rfm92w / 93w v 3.0 page 102 ? t el: +86-755-82973805 fax: +86-755-82973550 e-mail: sales@hoper f .com http://ww w .hoper f .com name (address) bits variable name mode default value fsk/ook description service registers regimagecal (0x3b) 7 autoimagecalon rw 0x00 * controls the image calibration mechanism 0 ? calibration of the receiver depending on the temperature is disabled 1 ? calibration of the receiver depending on the temperature enabled. 6 imagecalstart wt - triggers the iq and rssi calibration when set in standby mode. 5 imagecalrunning r 0x00 set to 1 while the image and rssi calibration are running. toggles back to 0 when the process is completed 4 unused r - unused 3 tem p c h an g e r 0x00 irq flag witnessing a temperature change exceeding tempthreshold since the last image and rssi calibration: 0 ? temperature change lower than tempthreshold 1 ? temperature change greater than tempthreshold 2-1 tempthreshold rw 0x01 temperature change threshold to trigger a new i/q calibration 00 ? 5 c 01 ? 10 c 10 ? 15 c 11 ? 20 c 0 tempmonitoroff rw 0x00 controls the temperature monitor operation: 0 ? temperature monitoring done in all modes except sleep and standby 1 ? temperature monitoring stopped. regtemp (0x3c) 7-0 te m p va l u e r - measured temperature -1c per lsb needs calibration for absolute accuracy reglowbat (0x3d) 7-4 unused r - unused 3 lowbaton rw 0x00 low battery detector enable signal 0 ? lowbat detector disabled 1 ? lowbat detector enabled 2-0 lowbattrim rw 0x02 trimming of the lowbat threshold: 000 ? 1.695 v 001 ? 1.764 v 010 ? 1.835 v (d) 011 ? 1.905 v 100 ? 1.976 v 101 ? 2.045 v 110 ? 2.116 v 111 ? 2.185 v status registers
rfm92w / 93w v 3.0 page 103 ? t el: +86-755-82973805 fax: +86-755-82973550 e-mail: sales@hoper f .com http://ww w .hoper f .com name (address) bits variable name mode default value fsk/ook description regirqflags1 (0x3e) 7 modeready r - set when the operation mode requested in mode , is ready - sleep: entering sleep mode - standby: xo is running - fs: pll is locked - rx: rssi sampling starts - tx: pa ramp-up completed cleared when changing the operating mode. 6 rxready r - set in rx mode, after rssi, agc and afc. cleared when leaving rx. 5 txready r - set in tx mode, after pa ramp-up. cleared when leaving tx. 4 plllock r - set (in fs, rx or tx) when the pll is locked. cleared when it is not. 3 rssi rwc - set in rx when the rssivalue exceeds rssithreshold. cleared when leaving rx or setting this bit to 1. 2 timeout r - set when a timeout occurs cleared when leaving rx or fifo is emptied. 1 preambledetect rwc - set when the preamble detector has found valid preamble. bit clear when set to 1 0 syncaddressmatch rwc - set when sync and address (if enabled) are detected. cleared when leaving rx or fifo is emptied. this bit is read only in packet mode, rwc in continuous mode regirqflags2 (0x3f) 7 fifofull r - set when fifo is full (i.e. contains 66 bytes), else cleared. 6 fifoempty r - set when fifo is empty, and cleared when there is at least 1 byte in the fifo. 5 fifolevel r - set when the number of bytes in the fifo strictly exceeds fifothreshold , else cleared. 4 fifooverrun rwc - set when fifo overrun occurs. (except in sleep mode) flag(s) and fifo are cleared when this bit is set. the fifo then becomes immediately available for the next transmission / reception. 3 packetsent r - set in tx when the complete packet has been sent. cleared when exiting tx 2 payloadready r - set in rx when the payload is ready (i.e. last byte received and crc, if enabled and crcautoclearoff is cleared , is ok). cleared when fifo is empty. 1 crcok r - set in rx when the crc of the payload is ok. cleared when fifo is empty. 0 lowbat rwc - set when the battery voltage drops below the low battery threshold. cleared only when set to 1 by the user. io control registers
rfm92w / 93w v 3.0 page 104 ? t el: +86-755-82973805 fax: +86-755-82973550 e-mail: sales@hoper f .com http://ww w .hoper f .com name (address) bits variable name mode default value fsk/ook description regdiomapping1 (0x40) 7-6 dio0mapping rw 0x00 mapping of pins dio0 to dio5 see table 23 for mapping in lora mode see table 27 for mapping in continuous mode see table 28 for mapping in packet mode 5-4 dio1mapping rw 0x00 3-2 dio2mapping rw 0x00 1-0 dio3mapping rw 0x00 regdiomapping2 (0x41) 7-6 dio4mapping rw 0x00 5-4 dio5mapping rw 0x00 3-1 reserved rw 0x00 reserved. retain default value 0 mappreambledetect rw 0x00 allows the mapping of either rssi or preambledetect to the dio pins, as summarized on table 27 and table 28 0 ? rssi interrupt 1 ? preambledetect interrupt version register regversion (0x42) 7-0 version r 0x22 version code of the chip. bits 7-4 give the full revision number; bits 3-0 give the metal mask revision number. additional registers regagcref (0x43) 7-6 unused r - unused 5-0 agcreferencelevel rw 0x13 sets the floor reference for all agc thresholds: agc reference [dbm] = -174 dbm + 10*log(2* rxbw ) + snr + agcreferencelevel snr = 8 db, fixed value regagcthresh1 (0x44) 7-5 unused r - unused 4-0 agcstep1 rw 0x0e defines the 1st agc threshold regagcthresh2 (0x45) 7-4 agcstep2 rw 0x05 defines the 2nd agc threshold: 3-0 agcstep3 rw 0x0b defines the 3rd agc threshold: regagcthresh3 (0x46) 7-4 agcstep4 rw 0x0d defines the 4th agc threshold: 3-0 agcstep5 rw 0x0b defines the 5th agc threshold: regpllhop (0x4b) 7 fasthopon rw 0x00 bypasses the main state machine for a quick frequency hop. writing regfrflsb will trigger the frequency change. 0 ? frf is validated when fstx or fsrx is requested 1 ? frf is validated triggered when regfrflsb is written 6-0 reserved rw 0x2e reserved regtcxo (0x58) 7-5 reserved rw 0x00 reserved. retain default value 4 tcxoinputon rw 0x00 controls the crystal oscillator 0 ? crystal oscillator with external crystal 1 ? external clipped sine tcxo ac-connected to xta pin 3-0 reserved rw 0x09 reserved. retain default value. regpadac (0x5a) 7-3 reserved rw 0x10 reserved. retain default value 2-0 padac rw 0x04 enables the +20 dbm option on pa_boost pin 0x04 ? default value 0x07 ? +20 dbm on pa_boost when outputpower = 1111
rfm92w / 93w v 3.0 page 105 ? t el: +86-755-82973805 fax: +86-755-82973550 e-mail: sales@hoper f .com http://ww w .hoper f .com name (address) bits variable name mode default value fsk/ook description regpll (0x5c) 7-6 pllbandwidth rw 0x03 controls the pll bandwidth: 00 ? 75 khz 10 ? 225 khz 01 ? 150 khz 11 ? 300 khz 5-0 reserved rw 0x10 reserved. retain default value regplllowpn (0x5e) 7-6 pllbandwidth rw 0x03 controls the low phase noise pll bandwidth: 00 ? 75 khz 10 ? 225 khz 01 ? 150 khz 11 ? 300 khz 5-0 reserved rw 0x10 reserved. retain default value regformertemp (0x6c) 7-0 formertemp rw - temperature saved during the latest iq (rssi and image) calibrated. same format as tempvalue in regtemp . regbitratefrac (0x70) 7-4 unused r 0x00 unused 3-0 bitratefrac rw 0x00 fractional part of the bit rate divider (only valid for fsk) if bitratefrac > 0 then: bitrate = --------------------------- f ---- x ---- o ----- s --- c ------------------------------ bi tr ate (15,0) + - b ---- i -- t -- r -- a ---- t -- e --- f ---- r -- a ---- c - 16
rfm92w / 93w v 3.0 page 106 ? t el: +86-755-82973805 fax: +86-755-82973550 e-mail: sales@hoper f .com http://ww w .hoper f .com 6.3. lora tm ? mode register map this section details the rfm92w/93w register mapping and the precise contents of each register in lora tm mode. it is essential to understand that the lora modem is controll ed independently of the fsk modem. therefore, care should be taken when accessing the registers, especially as some register may have the same name in lora or fsk mode. the lora registers are only accessible when the device is set in lora mode (and, in the same way, the fsk register are only accessible in fsk mode). however, in some cases, it may be necessary to access some of the fsk register while in lora mode. to this aim, the accessharedreg bit was created in the regopmode register. this bit, when set to ?1?, will grant access to the fsk register 0x0d up to the register 0x3f. once the setup has been done, it is strongly recommended to clear this bit so that lora register can be access normally. convention: r: read, w: write, c: set to clear and t: trigger table 41 register map, lora mode name (address) bits variable name mode reset lora tm ? description regfifo (0x00) 7-0 fifo rw 0x00 lora tm ? base-band fifo data input/output. fifo is cleared an not accessible when device is in sleep mode common register settings regopmode (0x01) 7 longrangemode rw 0x0 0 ? fsk/ook mode 1 ? lora tm ? mode this bit can be modified only in sleep mode. a write operation on other device modes is ignored. 6 accessharedreg rw 0x0 this bit operates when device is in lora mode; if set it allows access to fsk registers page located in address space (0x0d:0x3f) while in lora mode 0 ? access lora registers page 0x0d: 0x3f 1 ? access fsk registers page (in mode lora) 0x0d: 0x3f 5-3 unused r 0x00 2-0 mode rwt 0x01 device modes 000 ? sleep 001 ? stdby 010 ? frequency synthesis tx (fstx) 011 ? transmit (tx) 100 ? frequency synthesis rx (fsrx) 101 ? receive continuous (rxcontinuous) 110 ? receive single (rxsingle) 111 ? channel activity detection (cad) (0x02) 7-0 reserved r 0x00 - (0x03) 7-0 reserved r 0x00 - (0x04) 7-0 reserved r 0x00 - (0x05) 7-0 reserved r 0x00 - regfrmsb (0x06) 7-0 frf(23:16) rw 0xe4 msb of rf carrier frequency regfrmid (0x07) 7-0 frf(15:8) rw 0xc0 msb of rf carrier frequency
rfm92w / 93w v 3.0 page 107 ? t el: +86-755-82973805 fax: +86-755-82973550 e-mail: sales@hoper f .com http://ww w .hoper f .com name (address) bits variable name mode reset lora tm ? description regfrlsb (0x08) 7-0 frf(7:0) rwt 0x00 lsb of rf carrier frequency f = ---- ( -- x ---- o ----- s -- c) ? fr - f rf ----------------- 2 19 resolution is 61.035 hz if f(xosc) = 32 mhz. default value is 0xe4c000 = 915 mhz. register values must be modified only when device is in sleep or stand-by mode. register for rf regpaconfig (0x09) 7 paselect rw 0x00 selects pa output pin 0 ? rfio pin. output power is limited to 13 dbm. 1 ? pa_boost pin. output power is limited to 20 dbm 6-4 unused r - unused 3-0 outputpower rw 0x0f power amplifier max output power: pout = 2 + outputpower(3:0) on pa_boost. pout = -1 + outputpower(3:0) on rfio. regparamp (0x0a) 7-5 unused r - unused 4 lowpntxplloff rw 0x01 1 ? low consumption pll is used in receive and transmit mode 0 ? low consumption pll in receive mode, low phase noise pll in transmit mode. 3-0 paramp(3:0) rw 0x09 rise/fall time of ramp up/down in fsk 0000 ? 3.4 ms 0001 ? 2 ms 0010 ? 1 ms 0011 ? 500 us 0100 ? 250 us 0101 ? 125 us 0110 ? 100 us 0111 ? 62 us 1000 ? 50 us 1001 ? 40 us 1010 ? 31 us 1011 ? 25 us 1100 ? 20 us 1101 ? 15 us 1110 ? 12 us 1111 ? 10 us regocp (0x0b) 7-6 unused r 0x00 unused 5 ocpon rw 0x01 enables overload current protection (ocp) for pa: 0 ? ocp disabled 1 ? ocp enabled 4-0 ocptrim rw 0x0b trimming of ocp current: i max = 45+5*ocptrim [ma] if ocptrim <= 15 (120 ma) / i max = -30+10*ocptrim [ma] if 15 < ocptrim <= 27 (130 to 240 ma) i max = 240ma for higher settings default i max = 100ma
rfm92w / 93w v 3.0 page 108 ? t el: +86-755-82973805 fax: +86-755-82973550 e-mail: sales@hoper f .com http://ww w .hoper f .com name (address) bits variable name mode reset lora tm ? description reglna (0x0c) 7-5 lnagain rwx 0x01 lna gain setting: 000 ? not used 001 ? g1 = maximum gain 010 ? g2 011 ? g3 100 ? g4 101 ? g5 110 ? g6 = minimum gain 111 ? not used 4-2 reserved r 0x00 - 1-0 lnaboost rw 0x00 00 ? default lna current 11 ? boost on, 150% lna current. lora ? page registers regfifoaddrptr (0x0d) 7-0 fifoaddrptr rw 0x00 spi interface address pointer in fifo data buffer. regfifotxbasead dr (0x0e) 7-0 fifotxbaseaddr rw 0x80 write base address in fifo data buffer for tx modulator regfiforxbasead dr (0x0f) 7-0 fiforxbaseaddr rw 0x00 read base address in fifo data buffer for rx demodulator regfiforxcurrent addr (0x10) 7-0 fiforxcurrentaddr r n/a start address (in data buffer) of last packet received regirqflagsmask (0x11) 7 rxtimeoutmask rw 0x00 timeout interrupt mask: setting this bit masks the corresponding irq in regirqflags 6 rxdonemask rw 0x00 packet reception complete interrupt mask: setting this bit masks the corresponding irq in regirqflags 5 payloadcrcerrormask rw 0x00 payload crc error interrupt mask: setting this bit masks the corresponding irq in regirqflags 4 validheadermask rw 0x00 valid header received in rx mask: setting this bit masks the corresponding irq in regirqflags 3 txdonemask rw 0x00 fifo payload transmission complete interrupt mask: setting this bit masks the corresponding irq in regirqflags 2 caddonemask rw 0x00 cad complete interrupt mask: setting this bit masks the corresponding irq in regirqflags 1 fhsschangechannelm ask rw 0x00 fhss change channel interrupt mask: setting this bit masks the corresponding irq in regirqflags 0 caddetectedmask rw 0x00 cad detected interrupt mask: setting this bit masks the corresponding irq in regirqflags
rfm92w / 93w v 3.0 page 109 ? t el: +86-755-82973805 fax: +86-755-82973550 e-mail: sales@hoper f .com http://ww w .hoper f .com name (address) bits variable name mode reset lora tm ? description regirqflags (0x12) 7 rxtimeout rc 0x00 timeout interrupt: a write operation clears irq 6 rxdone rc 0x00 packet reception complete interrupt: a write operation clears irq 5 payloadcrcerror rc 0x00 payload crc error interrupt: a write operation clears irq 4 validheader rc 0x00 valid header received in rx: a write operation clears irq 3 txdone rc 0x00 fifo payload transmission complete interrupt: a write operation clears irq 2 caddone rc 0x00 cad complete: write to clear: a write operation clears irq 1 fhsschangechannel rc 0x00 fhss change channel interrupt: a write operation clears irq 0 caddetected rc 0x00 valid lora signal detected du ring cad operation: a write operation clears irq regrxnbbytes (0x13) 7-0 fiforxbytesnb r n/a number of payload bytes of latest packet received regrxheadercnt valuemsb (0x14) 7-0 validheadercntmsb(15: 8) r n/a number of valid headers received since last transition into rx mode, msb(15:8). header and packet counters are reseted in sleep mode. regrxheadercnt valuelsb (0x15) 7-0 validheadercntlsb(7:0) r n/a number of valid headers received since last transition into rx mode, lsb(7:0). header and packet counters are reseted in sleep mode. regrxpacketcntv aluemsb (0x16) 7-0 validpacketcntmsb(15: 8) rc n/a number of valid packets received since last transition into rx mode, msb(15:8). header and packet counters are reseted in sleep mode. regrxpacketcntv aluelsb (0x17) 7-0 validpacketcntlsb(7:0) r n/a number of valid packets received since last transition into rx mode, lsb(7:0). header and packet counters are reseted in sleep mode. regmodemstat (0x18) 7-5 rxcodingrate r n/a coding rate of last header received 4 modemstatus r ?1? modem clear 3 r ?0? header info valid 2 r ?0? rx on-going 1 r ?0? signal synchronized 0 r ?0? signal detected regpktsnrvalue (0x19) 7-0 packetsnr r n/a estimation of snr on last packet received.in two?s compliment format mutiplied by 4. snr [ db ] = p ----- a --- c --- k --- e --- t - snr [ tw -- o ---- s --- c --- o --- m - - --- p --- l - i -- m ----- e -- n --- t -- ] ----------------- - 4
rfm92w / 93w v 3.0 page 110 ? t el: +86-755-82973805 fax: +86-755-82973550 e-mail: sales@hoper f .com http://ww w .hoper f .com name (address) bits variable name mode reset lora tm ? description regpktrssivalue (0x1a) 7-0 packetrssi r n/a rssi of the latest packet received (dbm) r ssi [ db m ] = ? 125 + pack et rssi regrssivalue (0x1b) 7-0 rssi r n/a current rssi value (dbm) rssi [ dbm ] = ? 125 + rssi reghopchannel (0x1c) 7 plltimeout r n/a pll failed to lock while attempting a tx/rx/cad operation 1 ? pll did not lock 0 ? pll did lock 6 rxpayloadcrcon r n/a crc information extracted from the received packet header 0 ? header indicates crc off 1 ? header indicates crc on 5-0 fhsspresentchannel r n/a current value of frequency hopping channel in use. regmodemconfig 1 (0x1d) 7-6 bw rw 0x0 signal bandwidth: 00 ? 125 khz 01 ? 250 khz 10 ? 500 khz 11 ? reserved 5-3 codingrate rw ?001? error coding rate 001 ? 4/5 010 ? 4/6 011 ? 4/7 100 ? 4/8 all other values ? reserved in implicit header mode should be set on receiver to determine expected coding rate. see section 4.1.1.3. 2 implicitheadermodeon rw 0x0 0 ? explicit header mode 1 ? implicit header mode 1 rxpayloadcrcon rw 0x0 enable crc generation on payload, in implicit header mode this it determines if receiver should expect a payload crc. 0 ? crc disable 1 ? crc enable 0 lowdatarateoptimize rw 0x0 0 ? disabled 1 ? enabled; mandated for sf11 and sf12 with bw = 125 khz
rfm92w / 93w v 3.0 page 111 ? t el: +86-755-82973805 fax: +86-755-82973550 e-mail: sales@hoper f .com http://ww w .hoper f .com name (address) bits variable name mode reset lora tm ? description regmodemconfig 2 (0x1e) 7-4 spreadingfactor rw 0x7 sf rate (expressed as a base-2 logarithm) 6 ? 64 chips / symbol 7 ? 128 chips / symbol 8 ? 256 chips / symbol 9 ? 512 chips / symbol 10 ? 1024 chips / symbol 11 ? 2048 chips / symbol 12 ? 4096 chips / symbol other values reserved. 3 txcontinuousmode rw 0 0 ? normal mode, a single packet is sent 1 ? continuous mode, send multiple packets across the fifo (used for spectral analysis) 2 agcautoon rw 0x01 0 ? lna gain set by register lnagain 1 ? lna gain set by the internal agc loop 1-0 symbtimeout(9:8) rw 0x00 rx time-out msb regsymbtimeoutl sb (0x1f) 7-0 symbtimeout(7:0) rw 0x64 rx time-out lsb rx operation time-out value expressed as number of symbols: timeout = symbt imeout ? ts regpreamblemsb (0x20) 7-0 preamblelength(15:8) rw 0x0 preamble length msb, = preamblelength + 4.25 symbols see section for more details. regpreamblelsb (0x21) 7-0 preamblelength(7:0) rw 0x8 preamble length lsb regpayloadlength (0x22) 7-0 payloadlength(7:0) rw 0x1 payload length in bytes. the register needs to be set in implicit header mode for the expected packet length. a 0 value is not permitted regmaxpayloadle ngth (0x23) 7-0 payloadmaxlength(7:0) rw 0xff maximum payload length; if header payload length exceeds value a header crc error is generated. allows filtering of packet with a bad size. reghopperiod (0x24) 7-0 freqhoppingperiod(7:0) rw 0x0 symbol periods between frequency hops. (0 = disabled). 1st hop always happen after the 1st header symbol regfiforxbyteadd r (0x25) 7-0 fiforxbyteaddrptr r n/a current value of rx databuffer pointer (address of last byte written by lora receiver) (0x26) - (0x3f) - reserved r n/a reserved
rfm92w / 93w v 3.0 page 112 ? t el: +86-755-82973805 fax: +86-755-82973550 e-mail: sales@hoper f .com http://ww w .hoper f .com 7. application information 7.1. crystal resonator specification table 42 shows the crystal resonator specification for the crystal reference oscillator circuit of the rfm92w/93w. this specification covers the full range of operation of the rfm92w/93w and is employed in the reference design. table 42 crystal specification symbol description conditions min typ max unit fxosc xtal frequency - 32 - mhz rs xtal serial resistance - 15 40 ohms c0 xtal shunt capacitance - 1.5 3 pf cfoot external foot capacitance on each pin xta and xtb 8 15 22 pf cload crystal load capacitance 6 - 12 pf notes - the initial frequency tolerance, temperature stability and aging performance should be chosen in accordance with the target operating temperature range and the receiver bandwidth selected. - the loading capacitance should be applied externally, and adapted to the actual cload specification of the xtal. 7.2. reset of the chip a power-on reset of the rfm92w/93w is triggered at power up. additionally, a manual reset can be issued by controlling pin 6. 7.2.1. por if the application requires the disconnection of vdd from the rfm92w/93w, despite of the extremely low sleep mode current, the user should wait for 10 ms from of the end of the por cycle before commencing communications over the spi bus. pin 6 (reset) should be left floating during the por sequence. vdd pin 6 (output) undefined wait for 10 ms chip is ready from this point on figure 45. por timing diagram please note that any clkout activity can also be used to detect that the chip is ready.
rfm92w / 93w v 3.0 page 113 ? t el: +86-755-82973805 fax: +86-755-82973550 e-mail: sales@hoper f .com http://ww w .hoper f .com 7.2.2. manual reset a manual reset of the rfm92w/93w is possible even for applications in which vdd cannot be physically disconnected. pin 6 should be pulled high for a hundred microseconds and then released. the user should then wait for 5 ms before using the chip. vdd pin 6 high-z > 100 us ??1?? wait for 5 ms high-z chip is ready from this point on (input) figure 46. manual reset timing diagram note whilst pin 6 is driven high an over current co nsumption of up to ten milliampere can be seen on vdd. 7.3. top sequencer: listen mode examples in this scenario the circuit spends most of the time in idle mode during which only the rc oscillator is on. periodically the receiver wakes up and looks for incoming signal. if a wanted signal is detected the receiver is kept on and data are analyzed. otherwise, if there was no wanted signal for a defined period of time, the receiver is switched off until the next receive period. during listen mode the radio stays most of the time in a low power mode resulting in very low average power consumption. the general timing diagram of this scenario is given in figure 47. listen ? mod ? e ? : ? principle ? ? receive idle ( sleep + rc ) receive idle figure 47. listen mode: principle an interrupt request is generated on a packet reception. the user can then take appropriate action. depending on the application and environment, there are several ways to implement listen mode: ? wake on a preambledetect interrupt. ? wake on a syncaddress interrupt. ? wake on a payloadready interrupt. 7.3.1. wake on preamble interrupt in one possible scenario, the sequencer polls for a preamble detection. if a preamble signal is detected, the sequencer is switched off and the circuit stays in receive mode until the user switches modes. otherwise, the receiver is switched off until the next rx period.
rfm92w / 93w v 3.0 page 114 ? t el: +86-755-82973805 fax: +86-755-82973550 e-mail: sales@hoper f .com http://ww w .hoper f .com timer2 7.3.1.1. timing diagram when no signal is received, the circuit wakes every timer1 + timer2 and switches to receive mode for a time defined by timer2, as shown on the following diagram. if no preamble is detected, it then switches back to idle mode, i.e. sleep mode with rc oscillator on. no ? received ? sign ? al ? ? ? ? ? receive idle ( sleep + rc ) receive idle timer1 timer2 timer1 timer2 timer1 figure 48. listen mode with no preamble received if a preamble signal is detected the sequencer is switched off. the preambledetect signal can be mapped to dio4 in order to request the user's attention. received ? sign ? al ? ? ? preamble ( as long as t1 + 2 * t2 ) sync word payload crc idle ( sleep + rc ) receive time r 1 timer2 pr eam ble detect figure 49. listen mode with preamble received
rfm92w / 93w v 3.0 page 115 ? t el: +86-755-82973805 fax: +86-755-82973550 e-mail: sales@hoper f .com http://ww w .hoper f .com 7. 3 .1 . 2 . s e q u e n c e r c o n f i g u r a t io n the following graph shows listen mode - wake on preambledetect state machine: state ? mach ? ine ? ? sequencer off & initial mode = sleep or standby start bit set idlemode = 1 : sleep lowpower lowpowerselection = 1 start fromstart = 00 selection idle on t1 fromidle = 1 on t2 receive on preambledetect fromreceive = 110 sequencer off figure 50. wake on preambledetect state machine this example configuration is achieved as follows: table 43 listen mode with preambledetect condition settings v ariable effect idlemode 1: slee p mode fromstart 00: to lowpowerselection lowpowerselection 1: to idle state fromidle 1: to receive state on t1 interru p t fromreceive 110: to se q uencer o f f on preambledetect interru p t t timer2 defines the maximum duration the chip stays in receive mode as long as no preamble is detected. in order to optimize power consumption timer2 must be set just long enough for preamble detection. t timer1 + t timer2 defines the cycling period, i.e. ti me between two preamble polling star ts. in order to optimize average power consumption, timer1 should be relatively long. however, increasing timer1 also extends packet reception duration. in order to insure packet detection and optimize the receiver's power consumption the received packet preamble should be as long as t timer1 + 2 x t timer2 . an example of dio configuration for this mode is described in the following table: table 44 listen mode with preambledetect condition recommended dio mapping dio v alue descri p tion 0 01 crcok 1 00 fifolevel 3 00 fifoem p t y 4 11 preambledetect ? note: m a p preambledetect bit should be set.
rfm92w / 93w v 3.0 page 116 ? t el: +86-755-82973805 fax: +86-755-82973550 e-mail: sales@hoper f .com http://ww w .hoper f .com 7.3.2. wake on syncaddress interrupt in another possible scenario, the sequencer polls for a preamble detection and then for a valid syncaddress interrupt. if events occur, the sequencer is switched off and the circuit stays in receive mode until the user switches modes. otherwise, the receiver is switched off until the next rx period. 7.3.2.1. timing diagram most of the sequencer running time is spent duty cycling the receiver and idle modes with no wanted signal present. as shown by the timing diagram in figure 51, the circuit wakes periodically for a short time, defined by rxtimeout. the circuit is in a low power mode for the rest of timer1 + timer2 (i.e. timer1 + timer2 - trxtimeout) no ? wan ? ted ? sign ? al ? ? ? ? idle receive idle ( sleep + rc ) receive idle timer1 timer2 timer1 timer2 timer1 rxtimeout rxtimeout figure 51. listen mode with no syncaddress detected if a preamble is detected before rxtimeout timer ends the circuit stays in receive mode and waits for a valid syncaddress detection. if none is detected by the end of timer2, receive mode is deactivated and the polling cycle resumes, without any user intervention. unw ? anted ? sign ? al ? ? ? preamble ( preamble + sync = t2 ) wrong word payload crc idle receive idle receive idle timer1 rxtimeout timer2 timer1 rxtimeout timer2 timer1 preamble dete c t figure 52. listen mode with preamble received and no syncaddress but if a valid sync word is detected a syncaddress interrupt is fired, the sequencer is switched off and the circuit stays in receive mode as long as the user doesn't switch modes.
rfm92w / 93w v 3.0 page 117 ? t el: +86-755-82973805 fax: +86-755-82973550 e-mail: sales@hoper f .com http://ww w .hoper f .com wan ? ted ? sign ? al ? ? ? preamble ( preamble + sync = t2 ) sync word payload crc idle receive timer1 rxtimeout timer2 preamble detect sync addr ess fifo level figure 53. listen mode with preamble received & valid syncaddress 7.3.2.2. sequencer configuration the following graph shows listen mode - wake on syncaddress state machine: state ? mach ? ine ? ? ? sequencer off & initial mode = sleep or standby start bit set idlemode = 1 : sleep start fromstart = 00 lowpower lowpowerselection = 1 selection idle on t1 fromidle = 1 fromrxtimeout = 10 rxtimeout on t2 on rxtimeout receive on syncadress fromreceive = 101 sequencer off figure 54. wake on syncaddress state machine this example configuration is achieved as follows: table 45 listen mode with syncaddress condition settings v ariable effect idlemode 1: slee p mode fromstart 00: to lowpowerselection
rfm92w / 93w v 3.0 page 118 ? t el: +86-755-82973805 fax: +86-755-82973550 e-mail: sales@hoper f .com http://ww w .hoper f .com lowpowerselection 1: to idle state fromidle 1: to receive state on t1 interru p t fromreceive 101: to se q uencer off on s y ncaddres s interru p t fromrxtimeout 10: to lowpowerselection t timeoutrxpreamble should be set to the expected transmit preamble duration (depends on preambledetectsize and bitrate ). t timer1 should be set to 64 s (shortest possible duration). t timer2 is set so that t timer1 + t timer2 defines the time between two start of reception. in order to ensure packet detection and optimize the receiver power consumption the received packet preamble should be defined so that t preamble = t timer2 - t syncaddress with t syncaddress = ( syncsize + 1 ) *8/ bitrate . an example of dio configuration for this mode is described in the following table: table 46 listen mode with preambledetect condition recommended dio mapping dio v alue descri p tion 0 01 crcok 1 00 fifolevel 2 11 s y nc a ddress 3 00 fifoem p t y 4 11 preambledetect ? note: m a p preambledetect bit should be set.
rfm92w / 93w v 3.0 page 119 ? t el: +86-755-82973805 fax: +86-755-82973550 e-mail: sales@hoper f .com http://ww w .hoper f .com 7.4. top sequencer: beacon mode in this mode, a single message is periodically re-transmitted. if the payload being sent is always identical an d payloadlength is smaller than the fifo size, the use of the beaconon bit in regpacketconfig2 together with the sequencer permit to achieve periodic beacon without any user intervention. 7.4.1. timing diagram in this mode, the radio is switched to transmit mode every t timer1 + t timer2 and back to idle mode after packetsent , as shown in the diagram below. the sequencer insures minimal time is spent in transmit mode and therefore power consumption is optimized. beacon ? mod ? e ? ? ? ? ? idle transmit idle ( sleep + rc ) transmit idle timer1 timer2 time r2 timer1 timer1 packet sent packet sent figure 55. beacon mode timing diagram 7.4.2. sequencer configuration the beacon mode state machine is presented in the following graph. it should be noted that the sequencer enters an infinite loop and can only be stopped by setting sequencerstop bit in regseqconfig1 . state ? mach ? ine ? ? ? sequencer off & initial mode = sleep or standby start bit set idlemode = 1 : sleep start fromstart = 00 lowpower selection lowpowerselection = 1 idle on t1 fromidle = 0 on packetsent fromtransmit = 0 transmit figure 56. beacon mode state machine
rfm92w / 93w v 3.0 page 120 ? t el: +86-755-82973805 fax: +86-755-82973550 e-mail: sales@hoper f .com http://ww w .hoper f .com this example is achieved by programming the sequencer as follows: table 47 beacon mode settings v ariable e f fect idlemode 1: slee p mode fromstart 00: to lowpowerselection lowpowerselection 1: to idle state fromidle 0: to transmit state on t1 interru p t fromtransmit 0: to lowpowerselection on packetsent interru p t t timer1 + t timer2 define the time between the start of two transmissions.
rfm92w / 93w v 3.0 page 121 ? t el: +86-755-82973805 fax: +86-755-82973550 e-mail: sales@hoper f .com http://ww w .hoper f .com 7.5. example crc calculation the following routine may be implemented to mimic the crc calculation of the rfm92w/93w: figure 57. example crc code
rfm92w / 93w v 3.0 page 122 ? t el: +86-755-82973805 fax: +86-755-82973550 e-mail: sales@hoper f .com http://ww w .hoper f .com 7.6. example temperature reading the following routine may be implemented to read the temperature and calibrate the sensor: figure 58. example temperature reading
rfm92w / 93w v 3.0 page 123 ? t el: +86-755-82973805 fax: +86-755-82973550 e-mail: sales@hoper f .com http://ww w .hoper f .com 7.7. reference design please contact your representative for evaluation tools, reference designs and design assistance. note that all schematics shown in this section are full schematics, listing all required components, including decoupling capacitors. ? a ? figure 59:+20dbm schematic
rfm92w / 93w v 3.0 page 124 ? t el: +86-755-82973805 fax: +86-755-82973550 e-mail: sales@hoper f .com http://ww w .hoper f .com 8. packaging information 8.1. package outline drawing the rfm92w/93w is available in a package as shown in figure 60. figure 60. package outline drawing
rfm92w / 93w v 3.0 page 125 ? t el: +86-755-82973805 fax: +86-755-82973550 e-mail: sales@hoper f .com http://ww w .hoper f .com 9. ordering information d rfm92w/93w 868 s2 p/n: rfm92w-868s2 rfm92w module at 868mhz band, smd package p/n: rfm92w-915s2 rfm92w module at 9mhz band, smd package p/n: RFM93W-868S2 rfm93w module at 868mhz band, smd package p/n: rfm93w-915s2 rfm93w module at 915mhz band, smd package package ? o p eration ? band mode ? type ?
rfm92w / 93w v 3.0 page 126 ? t el: +86-755-82973805 fax: +86-755-82973550 e-mail: sales@hoper f .com http://ww w .hoper f .com hope microelectronics co.,ltd add: ? 2/ f, ? building ? 3, ? pingshan ? private ? enterprise ? science ? and ? technology ? park, ? lishan ? road, ? xili ? town, ? nanshan ? district, ? shenzhen, ? guangdong, ? china tel: 86-755-82973805 fax: 86-755-82973550 email: sales@hoperf.com website: http://www.hoperf.com http://www.hoperf.cn this document may contain preliminary information and is subject to change by hope microelectronics without notice. hope microelectronics assumes no responsibility or liability for any use of the information contained herein. nothing in this document shall operate as an express or implied license or indemnity under the intellectual property rights of hope microelectronics or third parties. the products described in this document are not intended for use in implantation or other direct life support applications where malfunction may result in the direct physical harm or injury to persons. no warranties of any kind, including, but not limited to, the implied warranties of mechantability or fitness for a articular purpose, are offered in this document. ?2006, hope microelectronics co.,ltd. all rights reserved.


▲Up To Search▲   

 
Price & Availability of RFM93W-868S2

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X